mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-30 00:26:06 +00:00

already have, check whether the name from the module is actually newer than the existing declaration. If it isn't, we might (say) replace a visible declaration with an injected friend, and thus make it invisible (or lose a default argument or an array bound). llvm-svn: 228661
12 lines
268 B
C++
12 lines
268 B
C++
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t %s -I%S/Inputs/cxx-lookup -verify
|
|
// expected-no-diagnostics
|
|
namespace llvm {}
|
|
#include "c2.h"
|
|
llvm::GlobalValue *p;
|
|
|
|
#include "na.h"
|
|
namespace N { struct foo; }
|
|
#include "nb.h"
|
|
N::foo *use_n_foo;
|