diff options
Diffstat (limited to 'test/CXX/temp/temp.spec')
-rw-r--r-- | test/CXX/temp/temp.spec/temp.expl.spec/p2-0x.cpp | 5 | ||||
-rw-r--r-- | test/CXX/temp/temp.spec/temp.explicit/p1-0x.cpp | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/test/CXX/temp/temp.spec/temp.expl.spec/p2-0x.cpp b/test/CXX/temp/temp.spec/temp.expl.spec/p2-0x.cpp index b0a19fb..75b198e 100644 --- a/test/CXX/temp/temp.spec/temp.expl.spec/p2-0x.cpp +++ b/test/CXX/temp/temp.spec/temp.expl.spec/p2-0x.cpp @@ -300,3 +300,8 @@ template<> template<typename T> void has_inline_namespaces::X0<X4>::mem_func_template(T&) { } template<> int has_inline_namespaces::X0<X4>::value = 13; + +namespace PR12938 { + template<typename> [[noreturn]] void func(); + template<> void func<int>(); +} diff --git a/test/CXX/temp/temp.spec/temp.explicit/p1-0x.cpp b/test/CXX/temp/temp.spec/temp.explicit/p1-0x.cpp index 80f0598..e0c7b35 100644 --- a/test/CXX/temp/temp.spec/temp.explicit/p1-0x.cpp +++ b/test/CXX/temp/temp.spec/temp.explicit/p1-0x.cpp @@ -12,7 +12,7 @@ struct Y { constexpr int f() { return 0; } }; -template constexpr int Y<int>::f(); // expected-error{{explicit instantiation cannot be 'constexpr'}} +template constexpr int Y<int>::f() const; // expected-error{{explicit instantiation cannot be 'constexpr'}} template<typename T> struct Z { |