[python] [tests] Fix test_linkage for unique external linkage
authorMichal Gorny <mgorny@gentoo.org>
Sat, 11 Nov 2017 20:01:41 +0000 (20:01 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Sat, 11 Nov 2017 20:01:41 +0000 (20:01 +0000)
commit3495440e45a2ce30414c457e12446c5bb5362fbc
tree54244f2a3c7738694ac048a35c2f965d99c20367
parent294b87b4329d8529f65d49024217bc1f9138fc15
[python] [tests] Fix test_linkage for unique external linkage

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

llvm-svn: 317986
clang/bindings/python/tests/cindex/test_linkage.py