blob: ad64a43554103c1a15ec97381f7234f944f8cba8 [file] [log] [blame]
Douglas Gregor81c000f2010-07-26 23:54:23 +00001#include "prefix.h"
2#include "preamble.h"
3int wibble(int);
4
5// FIXME: Turn on use of preamble files
6
7// RUN: %clang -x c-header -o %t.pch %S/Inputs/prefix.h
8// RUN: c-index-test -test-load-source-reparse 5 local -I %S/Inputs -include %t %s | FileCheck %s
9
10// CHECK: preamble.h:1:5: FunctionDecl=bar:1:5 Extent=[1:5 - 1:13]
11// CHECK: preamble.h:1:12: ParmDecl=:1:12 (Definition) Extent=[1:9 - 1:13]
12// CHECK: preamble.c:3:5: FunctionDecl=wibble:3:5 Extent=[3:5 - 3:16]
13// CHECK: preamble.c:3:15: ParmDecl=:3:15 (Definition) Extent=[3:12 - 3:16]