cmake/c++11-test-decltype-N2343.cpp

changeset 473
2a84149fe642
equal deleted inserted replaced
472:8986414c6ad5 473:2a84149fe642
1
2 bool check_size(int i)
3 {
4 return sizeof(int) == sizeof(decltype(i));
5 }
6
7 int main()
8 {
9 bool ret = check_size(42);
10 return ret ? 0 : 1;
11 }

mercurial