From ecf05ca83ee919973395ade965d95e9afdcd3c1b Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Tue, 1 May 2007 18:49:30 +0000 Subject: [PATCH] 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. 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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/C++Frontend/2007-04-31-TryCatch.cpp diff --git a/test/C++Frontend/2007-04-31-TryCatch.cpp b/test/C++Frontend/2007-04-31-TryCatch.cpp new file mode 100644 index 00000000000..8b8254d76e7 --- /dev/null +++ b/test/C++Frontend/2007-04-31-TryCatch.cpp @@ -0,0 +1,12 @@ +// RUN: %llvmgxx -S %s -o /dev/null + +#include + +namespace std +{ + codecvt:: + codecvt(size_t __refs) + : __codecvt_abstract_base(__refs), + _M_c_locale_codecvt(_S_get_c_locale()) + { } +}