Add __builtion_unreachable to vector::size(), vector::capacity()
[official-gcc.git] / gcc / testsuite / gcc.dg / incomplete-typedef-1.c
blob622bf6504216d085d739e4d2a1f1244262cb4dd4
1 /* { dg-do compile } */
2 /* { dg-options "" } */
4 typedef struct S TS;
5 typedef union U TU;
7 void
8 foo (void)
10 (TS) { }; /* { dg-error "invalid use of incomplete typedef" } */
11 (TU) { }; /* { dg-error "invalid use of incomplete typedef" } */