File: cstdint.cpp

package info (click to toggle)
emoslib 2%3A4.4.5-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 359,232 kB
  • ctags: 13,125
  • sloc: fortran: 93,166; ansic: 27,958; sh: 7,500; f90: 5,209; perl: 604; cpp: 305; makefile: 78; python: 53
file content (10 lines) | stat: -rw-r--r-- 179 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
10
#include <cstdint>
int main()
{
	bool test = 
		(sizeof(int8_t) == 1) &&
		(sizeof(int16_t) == 2) &&
		(sizeof(int32_t) == 4) &&
		(sizeof(int64_t) == 8);
	return test ? 0 : 1;
}