diff options
author | Duncan Sands <baldrick@free.fr> | 2007-05-01 18:49:30 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-05-01 18:49:30 +0000 |
commit | ecf05ca83ee919973395ade965d95e9afdcd3c1b (patch) | |
tree | 76ef0a88b23b95b2fd0354f66c20d500d971e1e5 /test/C++Frontend | |
parent | edb4a6bd760c98cbdc9d7055e055258561e2a361 (diff) | |
download | external_llvm-ecf05ca83ee919973395ade965d95e9afdcd3c1b.zip external_llvm-ecf05ca83ee919973395ade965d95e9afdcd3c1b.tar.gz external_llvm-ecf05ca83ee919973395ade965d95e9afdcd3c1b.tar.bz2 |
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
Diffstat (limited to 'test/C++Frontend')
-rw-r--r-- | test/C++Frontend/2007-04-31-TryCatch.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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 0000000..8b8254d --- /dev/null +++ b/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()) + { } +} |