diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/ia64/versionid-2.c')
-rw-r--r-- | gcc/testsuite/gcc.target/ia64/versionid-2.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/ia64/versionid-2.c b/gcc/testsuite/gcc.target/ia64/versionid-2.c new file mode 100644 index 000000000..258de0911 --- /dev/null +++ b/gcc/testsuite/gcc.target/ia64/versionid-2.c @@ -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\\\}" } } */ |