Douglas Gregor | 81c000f | 2010-07-26 23:54:23 +0000 | [diff] [blame] | 1 | #include "prefix.h" |
| 2 | #include "preamble.h" |
| 3 | int wibble(int); |
| 4 | |
Douglas Gregor | 81c000f | 2010-07-26 23:54:23 +0000 | [diff] [blame] | 5 | // RUN: %clang -x c-header -o %t.pch %S/Inputs/prefix.h |
Douglas Gregor | d9a30af | 2010-08-02 20:51:39 +0000 | [diff] [blame^] | 6 | // RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 5 local -I %S/Inputs -include %t %s 2> %t.stderr.txt | FileCheck %s |
| 7 | // RUN: FileCheck -check-prefix CHECK-DIAG %s < %t.stderr.txt |
Douglas Gregor | 81c000f | 2010-07-26 23:54:23 +0000 | [diff] [blame] | 8 | // CHECK: preamble.c:3:5: FunctionDecl=wibble:3:5 Extent=[3:5 - 3:16] |
| 9 | // CHECK: preamble.c:3:15: ParmDecl=:3:15 (Definition) Extent=[3:12 - 3:16] |
Douglas Gregor | d9a30af | 2010-08-02 20:51:39 +0000 | [diff] [blame^] | 10 | // CHECK-DIAG: preamble.h:4:7:{4:9-4:13}: warning: incompatible pointer types assigning to 'int *' from 'float *' |