1 /* { dg-do compile } */
2 /* { dg-require-weak "" } */
3 /* { dg-require-alias "" } */
4 /* { dg-options "-O2 -fdump-tree-optimized" } */
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"} } */