PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / pr70920-1.c
blob9b7e2d0e53b9abc6eee05126dfde7c8aa18fd4d4
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-gimple" } */
4 #include <stdint.h>
6 void f1();
7 void f2();
9 void
10 foo (int *a)
12 if ((intptr_t) a == 0)
14 f1 ();
15 if (a)
16 f2 ();
20 /* { dg-final { scan-tree-dump "if \\(a == 0B\\)" "gimple" } } */