blob: 429eafc2ccfe33a9940df2084e57249e4b347c3d (
plain)
1
2
3
4
5
6
7
8
|
/* { dg-do compile } */
/* { dg-require-weak "" } */
/* { dg-require-alias "" } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
static int dummy = 0;
extern int foo __attribute__((__weak__, __alias__("dummy")));
int bar() { if (foo) return 1; return 0; }
/* { dg-final { scan-tree-dump-not "return 0" "optimized"} } */
|