2017-11-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr70920-4.c
blobe9c2b9587e578167d0aead5b68d4317ade00d5ee
1 /* { dg-do compile } */
2 /* { dg-require-effective-target lp64 } */
3 /* { dg-options "-O2 -fdump-tree-forwprop-details -Wno-int-to-pointer-cast" } */
5 #include <stdint.h>
7 void f1();
8 void f2();
10 void
11 foo (int a)
13 void *cst = 0;
14 if ((int *) a == cst)
16 f1 ();
17 if (a)
18 f2 ();
22 /* { dg-final { scan-tree-dump "if \\(_\[0-9\]* == 0\\)" "forwprop1" } } */