Starting with r314037, anonymous namespaces no longer give
unique-external linkage to variables. However, this linkage can still be
achieved by using a type which is not exterally visible,
e.g. through being declared in an anonymous namespace but used outside
it. Fix the test to take advantage of that.
Differential Revision: https://reviews.llvm.org/D39810
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@317986
91177308-0d34-0410-b5e6-
96231b3b80d8
tu = get_tu("""
void foo() { int no_linkage; }
static int internal;
-namespace { extern int unique_external; }
+namespace { struct unique_external_type {} }
+unique_external_type unique_external;
extern int external;
""", lang = 'cpp')