11 __typeof__(int) aa = 1024;
14 __typeof__(aa) bb = 2048;
20 typeof(c) d = "world";
22 expectstr(d, "world");
23 expecti(sizeof(d), 6);
25 typeof(typeof (char *)[4]) odd;
26 expecti(sizeof(odd)/sizeof(*odd), 4);
30 __typeof__(cc) dd = "world";
32 expectstr(dd, "world");
33 expecti(sizeof(dd), 6);
35 __typeof__(__typeof__ (char *)[4]) oddd;
36 expecti(sizeof(oddd)/sizeof(*oddd), 4);
39 typeof(struct { int a; }) __1 = { .a = 1 };
40 typeof(union { int a; }) __2 = { .a = 1 };
41 typeof(enum { A1,B2 }) __3 = { B2 };
47 __typeof__(struct { int a; }) __11 = { .a = 1 };
48 __typeof__(union { int a; }) __22 = { .a = 1 };
49 __typeof__(enum { A11,B22 }) __33 = { B22 };