Allow resolving headers from a PCH even after headers+PCH were moved to another path.
[clang.git] / test / Sema / warn-missing-prototypes.c
blobbfd1459b41d0b7f2da3a57d37359d640b601ed3e
1 // RUN: %clang -Wmissing-prototypes -fsyntax-only -Xclang -verify %s
3 int f();
5 int f(int x) { return x; } // expected-warning{{no previous prototype for function 'f'}}
7 static int g(int x) { return x; }
9 int h(int x) { return x; } // expected-warning{{no previous prototype for function 'h'}}
11 static int g2();
13 int g2(int x) { return x; }
15 void test(void);
17 int h3();
18 int h4(int);
19 int h4();
21 void test(void) {
22 int h2(int x);
23 int h3(int x);
24 int h4();
27 int h2(int x) { return x; } // expected-warning{{no previous prototype for function 'h2'}}
28 int h3(int x) { return x; } // expected-warning{{no previous prototype for function 'h3'}}
29 int h4(int x) { return x; }
31 int f2(int);
32 int f2();
34 int f2(int x) { return x; }
36 // rdar://6759522
37 int main(void) { return 0; }