re PR c++/67313 (ICE: in vague_linkage_p, at cp/decl2.c:1878 with -fno-weak and varia...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 26 Nov 2015 10:37:33 +0000 (10:37 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 26 Nov 2015 10:37:33 +0000 (10:37 +0000)
2015-11-26  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/67313
* g++.dg/cpp0x/no-weak1.C: New.

From-SVN: r230934

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/no-weak1.C [new file with mode: 0644]

index 6e55cc29ede5b99fd00d605d633c470670fc9bcb..1152137137378e360620f94544ab4e161cb10def 100644 (file)
@@ -1,3 +1,8 @@
+2015-11-26  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/67313
+       * g++.dg/cpp0x/no-weak1.C: New.
+
 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/68128
diff --git a/gcc/testsuite/g++.dg/cpp0x/no-weak1.C b/gcc/testsuite/g++.dg/cpp0x/no-weak1.C
new file mode 100644 (file)
index 0000000..bb267aa
--- /dev/null
@@ -0,0 +1,13 @@
+// PR c++/67313
+// { dg-do compile { target c++11 } }
+// { dg-options "-fno-weak" }
+
+template < class ... >
+void f ()
+{
+}
+
+void foo ()
+{
+  f ();
+}