diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/tree-ssa/attr-alias-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/attr-alias-2.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/attr-alias-2.c b/gcc/testsuite/gcc.dg/tree-ssa/attr-alias-2.c new file mode 100644 index 0000000..50623a4 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tree-ssa/attr-alias-2.c @@ -0,0 +1,30 @@ +/* { dg-do compile } */ +/* { dg-require-alias "" } */ +/* { dg-options "-O2 -fdump-tree-optimized" } */ +static int a=4; +static int b __attribute__ ((alias("a"))); +main() +{ + return b+a; +} +/* { dg-final { scan-tree-dump "return 8" "optimized" } } */ +/* { dg-do compile } */ +/* { dg-require-alias "" } */ +/* { dg-options "-O2 -fdump-tree-optimized" } */ +static int a=4; +static int b __attribute__ ((alias("a"))); +main() +{ + return b+a; +} +/* { dg-final { scan-tree-dump "return 8" "optimized" } } */ +/* { dg-do compile } */ +/* { dg-require-alias "" } */ +/* { dg-options "-O2 -fdump-tree-optimized" } */ +static int a=4; +static int b __attribute__ ((alias("a"))); +main() +{ + return b+a; +} +/* { dg-final { scan-tree-dump "return 8" "optimized" } } */ |