File: cxx11-test-decltype.cpp

package info (click to toggle)
libvmime 0.9.2-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,636 kB
  • sloc: cpp: 55,417; ansic: 822; makefile: 91; sh: 8
file content (10 lines) | stat: -rw-r--r-- 136 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
bool check_size(int i)
{
	return sizeof(int) == sizeof(decltype(i));
}

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