commit | fc51cc968b11e805e7c9c2e01136547579e00a6e | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Tue Sep 22 17:23:30 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Tue Sep 22 17:23:30 2009 +0000 |
tree | 652660a2c870a1f93792b1e86ea27e9a9e0d45c8 | |
parent | e983d1757020b4f069310015faf11debe9bfe3c9 [diff] [blame] |
Don't assert that linkage decls are always C++, it's not true. Fixes PR5019. llvm-svn: 82557
diff --git a/clang/test/CodeGenCXX/mangle.cpp b/clang/test/CodeGenCXX/mangle.cpp index d952f31..dbcd0c9 100644 --- a/clang/test/CodeGenCXX/mangle.cpp +++ b/clang/test/CodeGenCXX/mangle.cpp
@@ -130,3 +130,10 @@ void h() { } } +// PR5019 +extern "C" { struct a { int b; }; } + +// CHECK: @_Z1fP1a +int f(struct a *x) { + return x->b; +}