Add __builtion_unreachable to vector::size(), vector::capacity()
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / volatile-1.c
blobf8440d412201db60bf4157244707cb642a4ec9fe
1 #include "../../gcc.dg/analyzer/analyzer-decls.h"
3 volatile int g;
5 void test_global (void)
7 int v1 = g;
8 int v2 = g;
9 __analyzer_eval (v1 == v2); /* { dg-warning "UNKNOWN" } */
12 void test_local (void)
14 volatile int x = 0;
15 int v1 = x;
16 int v2 = x;
17 __analyzer_eval (v1 == v2); /* { dg-warning "UNKNOWN" } */