versionid-1.c: New test.

* gcc.target/ia64/versionid-1.c: New test.
	* gcc.target/ia64/versionid-2.c: New test.

From-SVN: r121130
This commit is contained in:
Steve Ellcey 2007-01-24 19:47:31 +00:00 committed by Steve Ellcey
parent 3b313c7838
commit 62df280550
3 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-01-24 Steve Ellcey <sje@cup.hp.com>
* gcc.target/ia64/versionid-1.c: New test.
* gcc.target/ia64/versionid-2.c: New test.
2007-01-24 Richard Guenther <rguenther@suse.de>
PR testsuite/30181

View File

@ -0,0 +1,10 @@
/* { dg-do compile { target ia64-*-hpux* } } */
extern int foo () __attribute__((version_id ("20040821")));
int bar(int i)
{
return (foo() + 1);
}
/* { dg-final { scan-assembler "alias.*foo.*foo{20040821}" } } */

View File

@ -0,0 +1,10 @@
/* { dg-do compile { target ia64-*-hpux* } } */
extern int foo () __attribute__((version_id ("20040821")));
int foo(int i)
{
return (1);
}
/* { dg-final { scan-assembler "alias.*foo.*foo{20040821}" } } */