annotate gcc/testsuite/gcc.dg/pr34088.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* PR middle-end/34088 */
kono
parents:
diff changeset
2 /* { dg-do compile } */
kono
parents:
diff changeset
3 /* { dg-options "-O -Wall -Werror" } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 int F0 (int);
kono
parents:
diff changeset
6 int F1 (int t) { return F0(t); }
kono
parents:
diff changeset
7 int F2 (int t) { return F0(t); }
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 extern int X[];
kono
parents:
diff changeset
10 static inline int foo(int i)
kono
parents:
diff changeset
11 {
kono
parents:
diff changeset
12 return X[i];
kono
parents:
diff changeset
13 }
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 int bar(int* p)
kono
parents:
diff changeset
16 {
kono
parents:
diff changeset
17 int i;
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 while ( ({ if (foo(*p) && foo(*p)); p; }) );
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 return i; /* { dg-error "is used uninitialized" } */
kono
parents:
diff changeset
22 }
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 /* { dg-message "warnings being treated as errors" "" {target "*-*-*"} 0 } */