Add __builtion_unreachable to vector::size(), vector::capacity()
[official-gcc.git] / gcc / testsuite / gcc.dg / pr88701.c
blob7aa846d1682a117b1185239f754e9c2983ce4fdf
1 /* PR c/88701 */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c99 -pedantic-errors" } */
5 void foo (int [(int (*)[1]) { 0 } == 0]);
6 void bar (int n, int [(int (*)[n]) { 0 } == 0]);
8 int
9 baz (int a[(int (*)[1]) { 0 } == 0])
11 return a[0];
14 int
15 qux (int n, int a[(int (*)[n]) { 0 } == 0])
17 return a[0] + n;