re PR ipa/65287 (Current trunk ICE in address_matters_p, at symtab.c:1908)
authorJan Hubicka <hubicka@gcc.gnu.org>
Tue, 3 Mar 2015 17:33:22 +0000 (17:33 +0000)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 3 Mar 2015 17:33:22 +0000 (17:33 +0000)
PR ipa/65287
* gcc.dg/ipa/pr65287.c: New test.

From-SVN: r221157

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;
+}