Daniel Dunbar | 1787b70 | 2009-11-08 01:46:19 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -emit-pch -x c -o %t.pch %S/Inputs/c-index-pch.h |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 2 | // RUN: clang-cc -include-pch %t.pch -x c -emit-pch -o %t.ast %s |
| 3 | // RUN: c-index-test %t.ast all | FileCheck -check-prefix=ALL %s |
Douglas Gregor | 7d1d49d | 2009-10-16 20:01:17 +0000 | [diff] [blame] | 4 | // RUN: c-index-test %t.ast local | FileCheck -check-prefix=LOCAL %s |
| 5 | // ALL: FunctionDecl=foo |
| 6 | // ALL: VarDecl=bar |
| 7 | // ALL: FunctionDecl=wibble |
| 8 | // ALL: FunctionDecl=wonka |
| 9 | // LOCAL-NOT: FunctionDecl=foo |
| 10 | // LOCAL-NOT: VarDecl=bar |
| 11 | // LOCAL: FunctionDecl=wibble |
| 12 | // LOCAL: FunctionDecl=wonka |
Douglas Gregor | 52e7108 | 2009-10-16 18:18:30 +0000 | [diff] [blame] | 13 | void wibble(int i); |
Douglas Gregor | 7d1d49d | 2009-10-16 20:01:17 +0000 | [diff] [blame] | 14 | void wonka(float); |