diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-07-14 04:45:33 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-07-14 04:45:33 +0000 |
commit | 773eb03d8c12639e4219869a97c3b45ff13a1533 (patch) | |
tree | 3e37253c2c0d850b4944ff1156994ee83625ab83 | |
parent | f1adcddef211b6605eb7fe5341cc110a801b4f5f (diff) |
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
-rw-r--r-- | test/Index/c-index-api-loadTU-test.m | 4 |
1 files changed, 4 insertions, 0 deletions
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: <invalid loc>:0:0: attribute(iboutlet)= |