summaryrefslogtreecommitdiffstats
path: root/test/Index
diff options
context:
space:
mode:
authorVassil Vassilev <v.g.vassilev@gmail.com>2017-07-01 20:44:49 +0000
committerVassil Vassilev <v.g.vassilev@gmail.com>2017-07-01 20:44:49 +0000
commit17fb9ad1ae41e5b764e813c4e766ae5e2ce2b210 (patch)
tree12837468397b4d4ff951f473a2258b24ccd1452e /test/Index
parentd958391d29c3f78385bd097f8adea009303baf12 (diff)
[modules] Teach clang how to merge typedef over anonymous structs in C mode.
In C mode clang fails to merge the textually included definition with the one imported from a module. The C lookup rules fail to find the imported definition because its linkage is internal in non C++ mode. This patch reinstates some of the ODR merging rules for typedefs of anonymous tags for languages other than C++. Patch by Raphael Isemann and me (D34510). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306964 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index')
-rw-r--r--test/Index/usrs.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Index/usrs.m b/test/Index/usrs.m
index 92c3a3fafe..d0a860e1af 100644
--- a/test/Index/usrs.m
+++ b/test/Index/usrs.m
@@ -119,7 +119,7 @@ int test_multi_declaration(void) {
// CHECK: usrs.m c:@SA@MyStruct Extent=[15:9 - 18:2]
// CHECK: usrs.m c:@SA@MyStruct@FI@wa Extent=[16:3 - 16:9]
// CHECK: usrs.m c:@SA@MyStruct@FI@moo Extent=[17:3 - 17:10]
-// CHECK: usrs.m c:usrs.m@T@MyStruct Extent=[15:1 - 18:11]
+// CHECK: usrs.m c:@T@MyStruct Extent=[15:1 - 18:11]
// CHECK: usrs.m c:@E@Pizza Extent=[20:1 - 23:2]
// CHECK: usrs.m c:@E@Pizza@CHEESE Extent=[21:3 - 21:9]
// CHECK: usrs.m c:@E@Pizza@MUSHROOMS Extent=[22:3 - 22:12]