aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/exceptions.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-11-28 22:52:42 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-11-28 22:52:42 +0000
commita70c3f8738cc123ded68c183cedd6e93df670c2f (patch)
tree674b48f01151ea3e22fd62ada9a564529e86a140 /test/SemaCXX/exceptions.cpp
parent21173b1080abaa2738f9e700a9d4b0d04f928930 (diff)
Per C++11 [except.spec]p2, rvalue references are not permitted in exception specifications.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168824 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/exceptions.cpp')
-rw-r--r--test/SemaCXX/exceptions.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/SemaCXX/exceptions.cpp b/test/SemaCXX/exceptions.cpp
index 8e32494825..c2ca9f952b 100644
--- a/test/SemaCXX/exceptions.cpp
+++ b/test/SemaCXX/exceptions.cpp
@@ -143,3 +143,5 @@ namespace Decay {
struct E; // expected-note {{forward declaration}}
C<E[10]> e; // expected-note {{in instantiation of}}
}
+
+void rval_ref() throw (int &&); // expected-error {{rvalue reference type 'int &&' is not allowed in exception specification}} expected-warning {{C++11}}