re PR target/65058 (AIX: missing extern decorations "[DS]" for functions and "[UA...
authorDavid Edelsohn <dje.gcc@gmail.com>
Mon, 16 Feb 2015 23:03:33 +0000 (23:03 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Mon, 16 Feb 2015 23:03:33 +0000 (18:03 -0500)
        PR target/65058
        * gcc.target/powerpc/pr65058.c: New test.

From-SVN: r220744

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr65058.c [new file with mode: 0644]

index 06ed820e235362448c3b6df2c70d52f338de7caf..ee133fa2bc052740ed67386242530dfc3511e403 100644 (file)
@@ -1,3 +1,8 @@
+2015-02-16  David Edelsohn  <dje.gcc@gmail.com>
+
+       PR target/65058
+       * gcc.target/powerpc/pr65058.c: New test.
+
 2015-02-16  Jeff Law  <law@redhat.com>
 
        PR tree-optimization/64823
diff --git a/gcc/testsuite/gcc.target/powerpc/pr65058.c b/gcc/testsuite/gcc.target/powerpc/pr65058.c
new file mode 100644 (file)
index 0000000..a6613ac
--- /dev/null
@@ -0,0 +1,10 @@
+/* { dg-do compile { target { powerpc*-*-aix* } } } */
+/* { dg-final { scan-assembler "externfunc\\\[DS\\\]" } } */
+/* { dg-final { scan-assembler "externvar\\\[UA\\\]" } } */
+
+extern int externvar;
+extern void externfunc(void);
+
+int *localvar = &externvar;
+void (*localfunc)(void) = externfunc;
+