aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-24 12:30:51 +0000
committerChris Lattner <sabre@nondot.org>2003-08-24 12:30:51 +0000
commit0cbe8a7d99291c490557d4ba91d640e275c864e6 (patch)
treecc8dca33cf25c4a5585cb7c120778c8121b86f75
parenta182d2f8960da3ae37b6ca113581f7d98171c1e5 (diff)
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8113 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/C++Frontend/EH/dead_try_block.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/C++Frontend/EH/dead_try_block.cpp b/test/C++Frontend/EH/dead_try_block.cpp
new file mode 100644
index 0000000000..46a5573557
--- /dev/null
+++ b/test/C++Frontend/EH/dead_try_block.cpp
@@ -0,0 +1,11 @@
+// This testcase doesn't actually DO any EH
+
+static void foo() {}
+int main() {
+ try {
+ foo();
+ return 0;
+ } catch(...) {
+ return 1;
+ }
+}