FairRoot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
cxx11-test-sizeof_member.cpp
Go to the documentation of this file.
1
struct
foo
{
2
char
bar
;
3
int
baz
;
4
};
5
6
int
main
(
void
)
7
{
8
bool
ret = (
9
(
sizeof
(
foo::bar
) == 1) &&
10
(
sizeof
(
foo::baz
) >=
sizeof
(
foo::bar
)) &&
11
(
sizeof
(
foo
) >=
sizeof
(
foo::bar
) +
sizeof
(
foo::baz
))
12
);
13
return
ret ? 0 : 1;
14
}
foo
Definition:
cxx11-test-sizeof_member.cpp:1
main
int main(void)
Definition:
cxx11-test-__func__.cpp:1
foo::baz
int baz
Definition:
cxx11-test-sizeof_member.cpp:3
foo::bar
char bar
Definition:
cxx11-test-sizeof_member.cpp:2
FairRoot
cmake
checks
cxx11-test-sizeof_member.cpp
Generated on Mon Mar 8 2021 12:14:05 for FairRoot by
1.8.5