mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
7301b42e36
tests/tests2/27_sizeof.*: Add test.
19 lines
255 B
C
19 lines
255 B
C
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
char a;
|
|
int b;
|
|
double c;
|
|
|
|
printf("%d\n", sizeof(a));
|
|
printf("%d\n", sizeof(b));
|
|
printf("%d\n", sizeof(c));
|
|
|
|
printf("%d\n", sizeof(!a));
|
|
|
|
return 0;
|
|
}
|
|
|
|
/* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/
|