aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/try-catch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/try-catch.cpp')
-rw-r--r--test/SemaCXX/try-catch.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/test/SemaCXX/try-catch.cpp b/test/SemaCXX/try-catch.cpp
deleted file mode 100644
index 653deaa5fb..0000000000
--- a/test/SemaCXX/try-catch.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-// RUN: clang-cc -fsyntax-only -verify %s
-
-struct A; // expected-note 3 {{forward declaration of 'struct A'}}
-
-void f()
-{
- try {
- } catch(int i) { // expected-note {{previous definition}}
- int j = i;
- int i; // expected-error {{redefinition of 'i'}}
- } catch(float i) {
- } catch(void v) { // expected-error {{cannot catch incomplete type 'void'}}
- } catch(A a) { // expected-error {{cannot catch incomplete type 'struct A'}}
- } catch(A *a) { // expected-error {{cannot catch pointer to incomplete type 'struct A'}}
- } catch(A &a) { // expected-error {{cannot catch reference to incomplete type 'struct A'}}
- } catch(...) {
- int j = i; // expected-error {{use of undeclared identifier 'i'}}
- }
-
- try {
- } catch(...) { // expected-error {{catch-all handler must come last}}
- } catch(int) {
- }
-}