Commit c99299ff by Andreas Schwab Committed by Andreas Schwab

* gcc.dg/tree-ssa/attr-alias.c: Remove duplicated contents.

From-SVN: r199682
parent 412e60dc
2013-06-05 Andreas Schwab <schwab@suse.de>
* gcc.dg/tree-ssa/attr-alias.c: Remove duplicated contents.
2013-06-04 Jan Hubicka <jh@suse.cz>
* gcc.dg/tree-ssa/attr-alias.c: New testcase.
......
......@@ -26,33 +26,3 @@ main()
/* { dg-final { scan-tree-dump-not "test1 (" "optimized" } } */
/* { dg-final { scan-tree-dump-not "test2 (" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
/* { dg-do compile } */
/* { dg-require-alias "" } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
void abort (void);
__attribute__ ((weak))
int test()
{
return 0;
}
static int test2() __attribute__ ((alias("test")));
static int test3() __attribute__ ((weakref)) __attribute__ ((alias("test2")));
static int test4() __attribute__ ((weakref)) __attribute__ ((alias("test")));
main()
{
test();
test2();
test3();
test4();
}
/* calls to test1 and test2 can be inlined and optmized away. Calls
to test and test4 are overwritable. */
/* { dg-final { scan-tree-dump-times "test (" 2 "optimized" } } */
/* { dg-final { scan-tree-dump-times "test4 (" 1 "optimized" } } */
/* { dg-final { scan-tree-dump-not "test1 (" "optimized" } } */
/* { dg-final { scan-tree-dump-not "test2 (" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment