diff options
Diffstat (limited to 'lib/entityx/cxx11/c++11-test-auto-N2546.cpp')
-rw-r--r-- | lib/entityx/cxx11/c++11-test-auto-N2546.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/entityx/cxx11/c++11-test-auto-N2546.cpp b/lib/entityx/cxx11/c++11-test-auto-N2546.cpp new file mode 100644 index 0000000..948648e --- /dev/null +++ b/lib/entityx/cxx11/c++11-test-auto-N2546.cpp @@ -0,0 +1,12 @@ + +int main() +{ + auto i = 5; + auto f = 3.14159f; + auto d = 3.14159; + bool ret = ( + (sizeof(f) < sizeof(d)) && + (sizeof(i) == sizeof(int)) + ); + return ret ? 0 : 1; +} |