summaryrefslogtreecommitdiffstats
path: root/llvm/test/C++Frontend/2007-04-31-TryCatch.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-05-01 18:49:30 +0000
committerDuncan Sands <baldrick@free.fr>2007-05-01 18:49:30 +0000
commitbb7989b622c394f6c6682e8d190a6d94571e7dfe (patch)
tree8188518678e18a2d4f78f0995c7b073f80f24970 /llvm/test/C++Frontend/2007-04-31-TryCatch.cpp
parent76c8c954668cb41242d51e047799a4b4d059205b (diff)
downloadbcm5719-llvm-bb7989b622c394f6c6682e8d190a6d94571e7dfe.tar.gz
bcm5719-llvm-bb7989b622c394f6c6682e8d190a6d94571e7dfe.zip
Test handling of TRY_CATCH_EXPRs for which the handler is a sequence of
ordinary statements, rather than a list of CATCH_EXPRs or an EH_FILTER_EXPR. llvm-svn: 36629
Diffstat (limited to 'llvm/test/C++Frontend/2007-04-31-TryCatch.cpp')
-rw-r--r--llvm/test/C++Frontend/2007-04-31-TryCatch.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/C++Frontend/2007-04-31-TryCatch.cpp b/llvm/test/C++Frontend/2007-04-31-TryCatch.cpp
new file mode 100644
index 00000000000..8b8254d76e7
--- /dev/null
+++ b/llvm/test/C++Frontend/2007-04-31-TryCatch.cpp
@@ -0,0 +1,12 @@
+// RUN: %llvmgxx -S %s -o /dev/null
+
+#include <locale>
+
+namespace std
+{
+ codecvt<char, char, mbstate_t>::
+ codecvt(size_t __refs)
+ : __codecvt_abstract_base<char, char, mbstate_t>(__refs),
+ _M_c_locale_codecvt(_S_get_c_locale())
+ { }
+}
OpenPOWER on IntegriCloud