From fc51cc968b11e805e7c9c2e01136547579e00a6e Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Tue, 22 Sep 2009 17:23:30 +0000 Subject: Don't assert that linkage decls are always C++, it's not true. Fixes PR5019. llvm-svn: 82557 --- clang/test/CodeGenCXX/mangle.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'clang/test/CodeGenCXX/mangle.cpp') 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; +} -- cgit v1.2.3