versionid-1.c: New test.
authorSteve Ellcey <sje@cup.hp.com>
Wed, 24 Jan 2007 19:47:31 +0000 (19:47 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Wed, 24 Jan 2007 19:47:31 +0000 (19:47 +0000)
* gcc.target/ia64/versionid-1.c: New test.
* gcc.target/ia64/versionid-2.c: New test.

From-SVN: r121130

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/ia64/versionid-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/ia64/versionid-2.c [new file with mode: 0644]

index 899705c0cb9e13a0c0ea857dda177081f76f937a..219ef9ab77d5d6637823e9fefe4c29f3e1c9509c 100644 (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
diff --git a/gcc/testsuite/gcc.target/ia64/versionid-1.c b/gcc/testsuite/gcc.target/ia64/versionid-1.c
new file mode 100644 (file)
index 0000000..7a461da
--- /dev/null
@@ -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}" } } */
diff --git a/gcc/testsuite/gcc.target/ia64/versionid-2.c b/gcc/testsuite/gcc.target/ia64/versionid-2.c
new file mode 100644 (file)
index 0000000..5a90aed
--- /dev/null
@@ -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}" } } */