This is currently copied from http://quickgit.kde.org/index.php?p=scratch%2Fdakon%2Fcmake-cxx11.git but there is a chance that in future it will be merged into CMake proper.
13 lines
165 B
C++
13 lines
165 B
C++
|
|
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;
|
|
}
|