* gcc.dg/tree-ssa/attr-alias.c: Remove duplicated contents.
From-SVN: r199682
This commit is contained in:
parent
412e60dc05
commit
c99299ff31
2 changed files with 4 additions and 30 deletions
|
@ -1,3 +1,7 @@
|
|||
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" } } */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue