Files
clang-p2996/clang/test/Modules/Inputs/namespaces-left.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

74 lines
731 B
C++

namespace RedeclAcrossImport {
enum E { e };
}
namespace AddAndReexportBeforeImport {
struct S {};
extern struct S t;
}
@import namespaces_top;
namespace RedeclAcrossImport {
E x = e;
}
float &global(float);
float &global2(float);
namespace LookupBeforeImport {
float &f(float);
}
namespace N1 { }
namespace N1 {
float& f(float);
}
namespace N2 {
float& f(float);
}
namespace N5 {
int &f(int);
}
namespace N6 {
int &f(int);
}
namespace N7 {
int &f(int);
}
namespace N8 {
int &f(int);
}
namespace N9 {
int &f(int);
}
namespace N10 {
int &f(int);
}
namespace N11 {
namespace {
class Foo;
}
Foo *getFoo();
}
namespace N12 {
namespace {
class Foo;
}
Foo *getFoo();
}