]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR ipa/65287
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Mar 2015 17:33:22 +0000 (17:33 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Mar 2015 17:33:22 +0000 (17:33 +0000)
* gcc.dg/ipa/pr65287.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221157 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/gcc.dg/ipa/pr65287.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/ipa/pr65287.c b/gcc/testsuite/gcc.dg/ipa/pr65287.c
new file mode 100644 (file)
index 0000000..5c975fc
--- /dev/null
@@ -0,0 +1,15 @@
+/* { dg-do compile } */
+/* { dg-require-alias "" } */
+/* { dg-options "-O2" } */
+
+const int __new_sys_siglist[] = {};
+
+extern __typeof(__new_sys_siglist) _new_sys_siglist
+    __attribute__((alias("__new_sys_siglist")));
+extern __typeof(__new_sys_siglist) _sys_siglist
+    __attribute__((alias("__new_sys_siglist")));
+
+int main()
+{
+  return 0;
+}