summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/linkage2.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-04-04 01:51:11 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-04-04 01:51:11 +0000
commit86c0d06194f055a7c12505302bebb904240dfeed (patch)
treeb3e8ed1d8d0cd9fa82546a5c3c47c60b6a89d108 /clang/test/SemaCXX/linkage2.cpp
parent34951275497192fc5bad19004d45d84f0418347b (diff)
downloadbcm5719-llvm-86c0d06194f055a7c12505302bebb904240dfeed.tar.gz
bcm5719-llvm-86c0d06194f055a7c12505302bebb904240dfeed.zip
Fix 41 of the 61 tests which fail with modules enabled: we were computing and
caching the linkage for a declaration before we set up its redeclaration chain, when determining whether a declaration could be a redeclaration of something from an unimported submodule. We actually want to look at the declaration as if it were not a redeclaration here, so compute the linkage but don't cache it. llvm-svn: 178733
Diffstat (limited to 'clang/test/SemaCXX/linkage2.cpp')
-rw-r--r--clang/test/SemaCXX/linkage2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/linkage2.cpp b/clang/test/SemaCXX/linkage2.cpp
index 2cee581b49c..c2dbf1e3085 100644
--- a/clang/test/SemaCXX/linkage2.cpp
+++ b/clang/test/SemaCXX/linkage2.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -verify -fmodules %s
namespace test1 {
int x; // expected-note {{previous definition is here}}
OpenPOWER on IntegriCloud