annotate gcc/testsuite/gcc.dg/pr30137-1.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-w -fdump-tree-gimple" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 /* Things that should not be folded. */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 struct { long base; int tail; void * volatile ptr; } *s;
kono
parents:
diff changeset
7 int foo3 (void) { return s == &s; }
kono
parents:
diff changeset
8 int foo5 (void) { return s->ptr == s->ptr; }
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 struct { union { int i; short s } u; } x;
kono
parents:
diff changeset
11 int foo6 (void) { return x.u.i == x.u.s; }
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 void **p;
kono
parents:
diff changeset
14 int foo8 (void) { return p == &p; }
kono
parents:
diff changeset
15 int foo9 (void) { return *p == p; }
kono
parents:
diff changeset
16 int foo10 (void) { return *p == &p; }
kono
parents:
diff changeset
17 int foo11 (void) { return p != &p; }
kono
parents:
diff changeset
18 int foo12 (void) { return *p != p; }
kono
parents:
diff changeset
19 int foo13 (void) { return *p != &p; }
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 /* { dg-final { scan-tree-dump-not "= 0;" "gimple" } } */
kono
parents:
diff changeset
22 /* { dg-final { scan-tree-dump-not "= 1;" "gimple" } } */