diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-08-30 15:04:51 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-08-30 15:04:51 +0000 |
commit | f62c5294c1213742e05ed3471a3d43991d825eb7 (patch) | |
tree | 7fbd13cd8c8662759ed43173da25465d8177672b /clang/test/SemaCXX/exception-spec.cpp | |
parent | 759ef23bb86ecd18cff8d9732ec54b9cb6f608a9 (diff) | |
download | bcm5719-llvm-f62c5294c1213742e05ed3471a3d43991d825eb7.tar.gz bcm5719-llvm-f62c5294c1213742e05ed3471a3d43991d825eb7.zip |
Emulate (some of) Microsoft's looser semantic checking of exception
specifications, from Martin Vejnar!
llvm-svn: 112482
Diffstat (limited to 'clang/test/SemaCXX/exception-spec.cpp')
-rw-r--r-- | clang/test/SemaCXX/exception-spec.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/clang/test/SemaCXX/exception-spec.cpp b/clang/test/SemaCXX/exception-spec.cpp index 498611ee859..b4bc78aa9a6 100644 --- a/clang/test/SemaCXX/exception-spec.cpp +++ b/clang/test/SemaCXX/exception-spec.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify -fexceptions -fms-extensions %s +// RUN: %clang_cc1 -fsyntax-only -verify -fexceptions %s // Straight from the standard: // Plain function with spec @@ -43,18 +43,12 @@ void r2() throw(int); void r2() throw(INT); // throw-any spec and no spec at all are semantically equivalent -void r3(); -void r3() throw(...); - void r4() throw(int, float); void r4() throw(float, int); void r5() throw(int); // expected-note {{previous declaration}} void r5(); // expected-warning {{missing exception specification}} -void r6() throw(...); // expected-note {{previous declaration}} -void r6() throw(int); // expected-error {{exception specification in declaration does not match}} - void r7() throw(int); // expected-note {{previous declaration}} void r7() throw(float); // expected-error {{exception specification in declaration does not match}} @@ -89,8 +83,6 @@ struct P : private A struct Base { virtual void f1() throw(); - virtual void f2(); - virtual void f3() throw(...); virtual void f4() throw(int, float); virtual void f5() throw(int, float); @@ -107,8 +99,6 @@ struct Base struct Derived : Base { virtual void f1() throw(); - virtual void f2() throw(...); - virtual void f3(); virtual void f4() throw(float, int); virtual void f5() throw(float); |