summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/crash-unparsed-exception.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaTemplate/crash-unparsed-exception.cpp')
-rw-r--r--clang/test/SemaTemplate/crash-unparsed-exception.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/test/SemaTemplate/crash-unparsed-exception.cpp b/clang/test/SemaTemplate/crash-unparsed-exception.cpp
index 1226b35deb7..3137d3fa197 100644
--- a/clang/test/SemaTemplate/crash-unparsed-exception.cpp
+++ b/clang/test/SemaTemplate/crash-unparsed-exception.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify -fcxx-exceptions -fexceptions %s
+// expected-no-diagnostics
struct A {
virtual ~A();
@@ -11,7 +12,7 @@ struct C {
~D() throw();
};
struct E : A {
- D<int> d; //expected-error{{exception specification is not available until end of class definition}}
+ D<int> d;
};
- B<int> b; //expected-note{{in instantiation of template class 'B<int>' requested here}}
+ B<int> b;
};
OpenPOWER on IntegriCloud