diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-26 00:29:11 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-26 00:29:11 +0000 |
commit | 88e37c2a8c7f52b01372e6794ab80caa75842d06 (patch) | |
tree | 5b8c216d439a1df40cc635feddc9da46e4c0f2a1 /test/SemaCXX/linkage.cpp | |
parent | 1377a4643925b7a56bc4ab3c0d66ee3ebd54d7c5 (diff) | |
download | clang-88e37c2a8c7f52b01372e6794ab80caa75842d06.tar.gz |
Add a testcase for a recent regression.
Thanks to Bill Wendling for the original testcase.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180586 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/linkage.cpp')
-rw-r--r-- | test/SemaCXX/linkage.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/SemaCXX/linkage.cpp b/test/SemaCXX/linkage.cpp index 6b73d596e0..13d295a5d5 100644 --- a/test/SemaCXX/linkage.cpp +++ b/test/SemaCXX/linkage.cpp @@ -94,3 +94,12 @@ extern "C" { // CHECK: define linkonce_odr i8* @_ZN5test21A1BILj0EE3fooEv( // CHECK: define linkonce_odr i8* @_ZN5test11A3fooILj0EEEPvv( + +namespace test5 { + struct foo { + }; + extern "C" { + const foo bar[] = { + }; + } +} |