Test handling of TRY_CATCH_EXPRs for which the handler is a sequence of
authorDuncan Sands <baldrick@free.fr>
Tue, 1 May 2007 18:49:30 +0000 (18:49 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 1 May 2007 18:49:30 +0000 (18:49 +0000)
ordinary statements, rather than a list of CATCH_EXPRs or an EH_FILTER_EXPR.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36629 91177308-0d34-0410-b5e6-96231b3b80d8

test/C++Frontend/2007-04-31-TryCatch.cpp [new file with mode: 0644]

diff --git a/test/C++Frontend/2007-04-31-TryCatch.cpp b/test/C++Frontend/2007-04-31-TryCatch.cpp
new file mode 100644 (file)
index 0000000..8b8254d
--- /dev/null
@@ -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())
+  { }
+}