PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr61144.c
blob429eafc2ccfe33a9940df2084e57249e4b347c3d
1 /* { dg-do compile } */
2 /* { dg-require-weak "" } */
3 /* { dg-require-alias "" } */
4 /* { dg-options "-O2 -fdump-tree-optimized" } */
5 static int dummy = 0;
6 extern int foo __attribute__((__weak__, __alias__("dummy")));
7 int bar() { if (foo) return 1; return 0; }
8 /* { dg-final { scan-tree-dump-not "return 0" "optimized"} } */