PR tree-optimization/86401
[official-gcc.git] / gcc / testsuite / c-c++-common / pr27336.c
blobce6855989a2c4d89446439890003dde4d21bb2e4
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdelete-null-pointer-checks -fdump-tree-vrp1" } */
4 struct B { int x; };
5 extern void g3(struct B *that) __attribute__((nonnull));
6 int f3(struct B *a)
8 g3(a);
9 return a != (void *)0;
12 /* { dg-final { scan-tree-dump "return 1;" "vrp1" } } */