From: Douglas Gregor Date: Wed, 14 Jul 2010 04:45:33 +0000 (+0000) Subject: Add test case that was causing an infinite loop when reading PCH files. The test... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=773eb03d8c12639e4219869a97c3b45ff13a1533;p=clang Add test case that was causing an infinite loop when reading PCH files. The test works with ToT Clang already git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108318 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Index/c-index-api-loadTU-test.m b/test/Index/c-index-api-loadTU-test.m index 22875dbfe8..4e5eed4369 100644 --- a/test/Index/c-index-api-loadTU-test.m +++ b/test/Index/c-index-api-loadTU-test.m @@ -66,6 +66,10 @@ int main (int argc, const char * argv[]) { - (IBAction) actionMethod:(id)arg; @end +typedef struct X0 X1; +struct X0; +struct X0 {}; + // CHECK: c-index-api-loadTU-test.m:4:12: ObjCInterfaceDecl=Foo:4:12 Extent=[4:1 - 12:5] // CHECK: c-index-api-loadTU-test.m:6:32: ObjCIvarDecl=myoutlet:6:32 (Definition) Extent=[6:32 - 6:40] // CHECK: :0:0: attribute(iboutlet)=