[NDS32] Add intrinsic functions for TLB operation and data prefech.
[official-gcc.git] / gcc / testsuite / gcc.dg / uninit-pred-6_a.c
blobaa44f76160d8f35a67c9b09ce36d942c293d90ff
2 /* { dg-do compile } */
3 /* { dg-options "-Wuninitialized -O2" } */
5 int g;
6 void bar();
7 void blah(int);
9 int foo (int n, int l, int m, int r)
11 int v;
13 if (n && l)
14 v = r;
16 if (m) g++;
17 else bar();
19 if ( n && l)
20 blah(v); /* { dg-bogus "uninitialized" "bogus warning" } */
22 return 0;
25 int foo_2 (int n, int l, int m, int r)
27 int v;
29 if (n && l)
30 v = r;
32 if (m) g++;
33 else bar();
35 if (n)
36 blah (v); /* { dg-warning "uninitialized" "warning" } */
38 return 0;