diff mbox

[C++,testcase,committed] PR 53473

Message ID 528A322C.9000008@oracle.com
State New
Headers show

Commit Message

Paolo Carlini Nov. 18, 2013, 3:28 p.m. UTC
Hi,

tested x86_64-linux, committed to mainline.

Paolo.

/////////////////////
2013-11-18  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/53473
	* g++.dg/cpp0x/constexpr-noexcept7.C: New.
diff mbox

Patch

Index: g++.dg/cpp0x/constexpr-noexcept7.C
===================================================================
--- g++.dg/cpp0x/constexpr-noexcept7.C	(revision 0)
+++ g++.dg/cpp0x/constexpr-noexcept7.C	(working copy)
@@ -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; }