summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/linkage.c
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-11-13 03:52:13 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-11-13 03:52:13 +0000
commit26210db67f218f46fa8ca1e1db3ba5dbbece0e84 (patch)
treee4111c2536ff9279f5400f7558c4652172b6e3c3 /clang/test/Index/linkage.c
parent4f82366759235f66f21b049d4350f7e5526680d9 (diff)
downloadbcm5719-llvm-26210db67f218f46fa8ca1e1db3ba5dbbece0e84.tar.gz
bcm5719-llvm-26210db67f218f46fa8ca1e1db3ba5dbbece0e84.zip
[modules] Follow the C++ standard's rule for linkage of enumerators: they have
the linkage of the enumeration. For enumerators of unnamed enumerations, extend the -Wmodules-ambiguous-internal-linkage extension to allow selecting an arbitrary enumerator (but only if they all have the same value, otherwise it's ambiguous). llvm-svn: 253010
Diffstat (limited to 'clang/test/Index/linkage.c')
-rw-r--r--clang/test/Index/linkage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Index/linkage.c b/clang/test/Index/linkage.c
index b0dcb30990a..ab006590b61 100644
--- a/clang/test/Index/linkage.c
+++ b/clang/test/Index/linkage.c
@@ -20,7 +20,7 @@ void f16(void) {
// CHECK: EnumDecl=Baz:3:6 (Definition)linkage=External
-// CHECK: EnumConstantDecl=Qux:3:12 (Definition)linkage=NoLinkage
+// CHECK: EnumConstantDecl=Qux:3:12 (Definition)linkage=External
// CHECK: VarDecl=x:4:5linkage=External
// CHECK: FunctionDecl=foo:5:6linkage=External
// CHECK: VarDecl=w:6:12linkage=Internal
OpenPOWER on IntegriCloud