blob: c81ec469c58785ca7ec7990c89e49c8215a7f15b [file] [log] [blame]
Douglas Gregor8c700062009-04-13 21:20:57 +00001// Test this without pch.
2// RUN: clang-cc -include %S/struct.h -fsyntax-only -verify %s
3
4// Test with pch.
5// RUN: clang-cc -emit-pch -o %t %S/struct.h &&
6// RUN: clang-cc -include-pch %t -fsyntax-only -verify %s
7
8struct Point *p1;
9
10float getX(struct Point *p1) {
11 return p1->x;
12}
13
14void *get_fun_ptr() {
15 return fun->is_ptr? fun->ptr : 0;
16}
17
18struct Fun2 {
19 int very_fun;
20};
21
22int get_very_fun() {
23 return fun2->very_fun;
24}