llvm-project/clang/test/Modules/Inputs/namespaces-top.h
Richard Smith 961eae5f95 Save out a correct lookup table if a lookup table entry is stale (it contains
an out-of-date external decls list). This happens if we declare some names,
force the lookup table for the decl context to be built, import a module that
adds more decls for the name, then write out our module without looking up the
name.

llvm-svn: 204694
2014-03-25 01:14:22 +00:00

24 lines
236 B
C++

namespace N1 {
int& f(int);
}
namespace N2 {
int& f(int);
}
namespace N3 {
int& f(int);
}
namespace N12 { }
namespace N13 {
void f();
int f(int);
void (*p)() = &f;
}
namespace AddAndReexportBeforeImport {
int S;
}