PR modula2/117371: type incompatibility between INTEGER and CARDINAL
[official-gcc.git] / gcc / testsuite / gcc.dg / Wstrict-aliasing-bogus-pta-1.c
bloba48827474d7ee5f81e85f46a626012d056623c87
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wall" } */
4 struct S { int *p; int *q; };
6 void foo (struct S *);
8 int bar (int b)
10 struct S s;
11 int *p;
12 float f;
13 foo (&s);
14 if (b)
15 p = s.q;
16 else
17 p = (int *)&f;
18 return *p;