Add __builtion_unreachable to vector::size(), vector::capacity()
[official-gcc.git] / gcc / testsuite / c-c++-common / Winit-self2.c
blob13aa9efdf26153f20bc5b609c3ab93768793843a
1 /* PR middle-end/102633 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wuninitialized -Winit-self" } */
5 int
6 fn1 (void)
8 int i = i; /* { dg-warning "used uninitialized" } */
9 return i;
12 int
13 fn2 ()
15 const int j = j; /* { dg-warning "used uninitialized" } */
16 return j;
19 int
20 fn3 ()
22 volatile int k = k; /* { dg-warning "used uninitialized" } */
23 return k;
26 int
27 fn4 ()
29 const volatile int l = l; /* { dg-warning "used uninitialized" } */
30 return l;