diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-12-22 21:35:02 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-12-22 21:35:02 +0000 |
commit | 8351da06ca3082dfd49dd8e3c1785a986920f57c (patch) | |
tree | 4000bf4f6263ae88d9580228d58d1631534a61ee /test/SemaCXX/try-catch.cpp | |
parent | 27b09ac9f7a4b2555bb9adda3568f3ba6264a63e (diff) |
Full AST support and better Sema support for C++ try-catch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61346 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/try-catch.cpp')
-rw-r--r-- | test/SemaCXX/try-catch.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaCXX/try-catch.cpp b/test/SemaCXX/try-catch.cpp index 920a1d59c7..97dbaee10d 100644 --- a/test/SemaCXX/try-catch.cpp +++ b/test/SemaCXX/try-catch.cpp @@ -16,4 +16,9 @@ void f() } catch(...) { int j = i; // expected-error {{use of undeclared identifier 'i'}} } + + try { + } catch(...) { // expected-error {{catch-all handler must come last}} + } catch(int) { + } } |