Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.dg / opt / vrp2.C
blobb2066ae2ea5841c015068091e8652a2d1fe8d166
1 /* { dg-do run } */
2 /* { dg-options "-O2" } */
4 /* VRP was miscompiling the following as it thought &a->b was a dereference
5    and therfore a was non-null.  
6    Reduced from Mozilla by Serge Belyshev <belyshev@depni.sinp.msu.ru>.  */
8 extern "C" void abort (void);
9 struct T { int i; } t;
10 struct A : T { int j; } *p = __null;
12 int main (void)
14   if (p == &t)
15     return 0;
16   if (p)
17     abort ();
18   return 0;