S/390: Allow immediates in loc expander
[official-gcc.git] / gcc / testsuite / gcc.dg / pr30137-1.c
blob4e32ce298495543e957277cf355cfb2d3824acac
1 /* { dg-do compile } */
2 /* { dg-options "-w -fdump-tree-gimple" } */
4 /* Things that should not be folded. */
6 struct { long base; int tail; void * volatile ptr; } *s;
7 int foo3 (void) { return s == &s; }
8 int foo5 (void) { return s->ptr == s->ptr; }
10 struct { union { int i; short s } u; } x;
11 int foo6 (void) { return x.u.i == x.u.s; }
13 void **p;
14 int foo8 (void) { return p == &p; }
15 int foo9 (void) { return *p == p; }
16 int foo10 (void) { return *p == &p; }
17 int foo11 (void) { return p != &p; }
18 int foo12 (void) { return *p != p; }
19 int foo13 (void) { return *p != &p; }
21 /* { dg-final { scan-tree-dump-not "= 0;" "gimple" } } */
22 /* { dg-final { scan-tree-dump-not "= 1;" "gimple" } } */