diff options
author | Alec Thomas <alec@swapoff.org> | 2013-10-29 23:05:34 -0400 |
---|---|---|
committer | Alec Thomas <alec@swapoff.org> | 2013-10-29 23:05:34 -0400 |
commit | 9eddc27fcd35289f68be45caaa53a47b8041c12a (patch) | |
tree | 4e1d9f35a3beeddcf7df974252c59f6641bd0fe3 /cxx11/c++11-test-sizeof_member-N2253.cpp | |
parent | a9206abf2f7cf7d9de19d2e077a134485edf95db (diff) |
Normalize line endings
Diffstat (limited to 'cxx11/c++11-test-sizeof_member-N2253.cpp')
-rw-r--r-- | cxx11/c++11-test-sizeof_member-N2253.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/cxx11/c++11-test-sizeof_member-N2253.cpp b/cxx11/c++11-test-sizeof_member-N2253.cpp index 3049ed1..a55fc09 100644 --- a/cxx11/c++11-test-sizeof_member-N2253.cpp +++ b/cxx11/c++11-test-sizeof_member-N2253.cpp @@ -1,14 +1,14 @@ -struct foo {
- char bar;
- int baz;
-};
-
-int main(void)
-{
- bool ret = (
- (sizeof(foo::bar) == 1) &&
- (sizeof(foo::baz) >= sizeof(foo::bar)) &&
- (sizeof(foo) >= sizeof(foo::bar)+sizeof(foo::baz))
- );
- return ret ? 0 : 1;
-}
+struct foo { + char bar; + int baz; +}; + +int main(void) +{ + bool ret = ( + (sizeof(foo::bar) == 1) && + (sizeof(foo::baz) >= sizeof(foo::bar)) && + (sizeof(foo) >= sizeof(foo::bar)+sizeof(foo::baz)) + ); + return ret ? 0 : 1; +} |