PR testsuite/86649
[official-gcc.git] / gcc / testsuite / g++.dg / tree-ssa / nonzero-2.C
bloba4492032ed5d0ffa2b5460f12052834437722dac
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-ccp1 -fdelete-null-pointer-checks" } */
3 struct t
5   static inline void tt()
6   {
7   }
8   virtual void q();
9 };
10 int m()
12   void *q = (void *)&t::tt;
13   return q != 0;
15 /* { dg-final { scan-tree-dump "return 1" "ccp1"} } */