aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/mangle.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-09-22 17:23:30 +0000
committerAnders Carlsson <andersca@mac.com>2009-09-22 17:23:30 +0000
commit5cc58c6cfe4a6378287dbf92f9b1a23e133a6118 (patch)
tree02b097db23458e6fb6f6429c8c99fab9fc24281f /test/CodeGenCXX/mangle.cpp
parentb2ef1beb812988ce45804d655c9a72bc523d5014 (diff)
Don't assert that linkage decls are always C++, it's not true. Fixes PR5019.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82557 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle.cpp')
-rw-r--r--test/CodeGenCXX/mangle.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGenCXX/mangle.cpp b/test/CodeGenCXX/mangle.cpp
index d952f31439..dbcd0c9460 100644
--- a/test/CodeGenCXX/mangle.cpp
+++ b/test/CodeGenCXX/mangle.cpp
@@ -130,3 +130,10 @@ extern "C++" {
void h() { }
}
+// PR5019
+extern "C" { struct a { int b; }; }
+
+// CHECK: @_Z1fP1a
+int f(struct a *x) {
+ return x->b;
+}