Sync with upstream 4.9 branch
[official-gcc.git] / embedded-4_9-branch / gcc / testsuite / gcc.dg / tree-ssa / pr61144.c
blobcd34b144e8992f5508cd311555e54f7b9e9f3484
1 /* { dg-do compile } */
2 /* { dg-require-weak "" } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 static int dummy = 0;
5 extern int foo __attribute__((__weak__, __alias__("dummy")));
6 int bar() { if (foo) return 1; return 0; }
7 /* { dg-final { scan-tree-dump-not "return 0" "optimized"} } */