summaryrefslogtreecommitdiffstats
path: root/clang/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
commitfc51cc968b11e805e7c9c2e01136547579e00a6e (patch)
tree652660a2c870a1f93792b1e86ea27e9a9e0d45c8 /clang/test/CodeGenCXX/mangle.cpp
parente983d1757020b4f069310015faf11debe9bfe3c9 (diff)
downloadbcm5719-llvm-fc51cc968b11e805e7c9c2e01136547579e00a6e.tar.gz
bcm5719-llvm-fc51cc968b11e805e7c9c2e01136547579e00a6e.zip
Don't assert that linkage decls are always C++, it's not true. Fixes PR5019.
llvm-svn: 82557
Diffstat (limited to 'clang/test/CodeGenCXX/mangle.cpp')
-rw-r--r--clang/test/CodeGenCXX/mangle.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/mangle.cpp b/clang/test/CodeGenCXX/mangle.cpp
index d952f314397..dbcd0c9460d 100644
--- a/clang/test/CodeGenCXX/mangle.cpp
+++ b/clang/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;
+}
OpenPOWER on IntegriCloud