summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/try-catch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/try-catch.cpp')
-rw-r--r--clang/test/CodeGenCXX/try-catch.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/try-catch.cpp b/clang/test/CodeGenCXX/try-catch.cpp
index 89f229fee37..b50214ecdb9 100644
--- a/clang/test/CodeGenCXX/try-catch.cpp
+++ b/clang/test/CodeGenCXX/try-catch.cpp
@@ -11,3 +11,11 @@ void f() {
} catch (const X x) {
}
}
+
+void h() {
+ try {
+ throw "ABC";
+ // CHECK: @_ZTIPKc to i8
+ } catch (char const(&)[4]) {
+ }
+}
OpenPOWER on IntegriCloud