2016-07-26 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr70920-4.c
blobdedb8959b283cbe8a6bc5b98b08df761f2f5ff5e
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-ccp-details -Wno-int-to-pointer-cast" } */
4 #include <stdint.h>
6 void f1();
7 void f2();
9 void
10 foo (int a)
12 void *cst = 0;
13 if ((int *) a == cst)
15 f1 ();
16 if (a)
17 f2 ();
21 /* { dg-final { scan-tree-dump "gimple_simplified to if \\(_\[0-9\]* == 0\\)" "ccp1" } } */