aboutsummaryrefslogtreecommitdiffstats
path: root/cxx11/c++11-test-decltype-N2343.cpp
blob: 843f83a14a383ec8ffd1ccda0f50205309a14f83 (plain)
1
2
3
4
5
6
7
8
9
10
11

bool check_size(int i)
{
	return sizeof(int) == sizeof(decltype(i));
}

int main()
{
	bool ret = check_size(42);
	return ret ? 0 : 1;
}