Debian Codegraph @

gcc/testsuite/gcc.dg/builtin-classify-type-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "" } */
3
4 void
5 foo (int n)
6 {
7 _Static_assert (__builtin_classify_type (enum E { E1, E2 }) == 3, "");
8 _Static_assert (__builtin_classify_type (struct S { int s; }) == 12, "");
9 _Static_assert (__builtin_classify_type (union U { int u; }) == 13, "");
10 _Static_assert (__builtin_classify_type (int [2 * n + 36]) == 14, "");
11 }