summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-09-18 00:12:09 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-09-18 00:12:09 +0000
commitbef6cd8b4325de6d05876260fe7c65442eff018d (patch)
tree7dfbab7802db12fd5bf542239d0490b2e84aa82c /clang/test
parentd7e375d4b3da967424244ba98a8681a647741869 (diff)
downloadbcm5719-llvm-bef6cd8b4325de6d05876260fe7c65442eff018d.tar.gz
bcm5719-llvm-bef6cd8b4325de6d05876260fe7c65442eff018d.zip
Skip parens when detecting whether we're instantiating a function declaration.
llvm-svn: 217997
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/SemaTemplate/instantiate-exception-spec-cxx11.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/instantiate-exception-spec-cxx11.cpp b/clang/test/SemaTemplate/instantiate-exception-spec-cxx11.cpp
index ae10399b9ad..f62ef61758a 100644
--- a/clang/test/SemaTemplate/instantiate-exception-spec-cxx11.cpp
+++ b/clang/test/SemaTemplate/instantiate-exception-spec-cxx11.cpp
@@ -58,6 +58,13 @@ namespace dr1330_example {
S().f<S>(); // ok
S().f<int>(); // expected-note {{instantiation of exception spec}}
}
+
+ template<typename T>
+ struct U {
+ void f() noexcept(T::error);
+ void (g)() noexcept(T::error);
+ };
+ U<int> uint; // ok
}
namespace core_19754_example {
OpenPOWER on IntegriCloud