aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/try-catch.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-12-23 22:04:40 +0000
committerDouglas Gregor <dgregor@apple.com>2009-12-23 22:04:40 +0000
commit154fe9812faddcd94568a64aee5f3cb0d47003d9 (patch)
treeb45599037a6fe6613a11a3caca60cc67fe583b3a /test/CodeGenCXX/try-catch.cpp
parentff1278809e62d1da22da171752cc5f07734bcf0c (diff)
There is no such thing as typeinfo for a cv-qualified type. Assert
that this is true when mangling, then fix up the various places in Sema and/or CodeGen that need to remove qualifiers. Addresses a linking issue when building LLVM with Clang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92064 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/try-catch.cpp')
-rw-r--r--test/CodeGenCXX/try-catch.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGenCXX/try-catch.cpp b/test/CodeGenCXX/try-catch.cpp
new file mode 100644
index 0000000000..2b5f3232d1
--- /dev/null
+++ b/test/CodeGenCXX/try-catch.cpp
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - -fexceptions | FileCheck %s
+
+struct X { };
+
+const X g();
+
+void f() {
+ try {
+ throw g();
+ // CHECK: @_ZTI1X to i8
+ } catch (const X x) {
+ }
+}