2013-11-18 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Nov 2013 15:26:45 +0000 (15:26 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Nov 2013 15:26:45 +0000 (15:26 +0000)
PR c++/53473
* g++.dg/cpp0x/constexpr-noexcept7.C: New.

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

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

index 909942b..253fb71 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-18  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/53473
+       * g++.dg/cpp0x/constexpr-noexcept7.C: New.
+
 2013-11-18  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/59125
diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-noexcept7.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-noexcept7.C
new file mode 100644 (file)
index 0000000..2a70d7b
--- /dev/null
@@ -0,0 +1,9 @@
+// PR c++/53473
+// { dg-do compile { target c++11 } }
+
+template<typename T> struct A
+{
+  static constexpr T foo() noexcept { return 0; }
+};
+
+template<> constexpr int A<int>::foo() noexcept { return 0; }