Add include needed for MSVC.
[clang/acc.git] / test / Sema / predefined-function.c
blobe8ccb3636b8e102b7a082ae18c2b18146a2b3fca
1 // RUN: clang-cc -fsyntax-only -verify -pedantic %s
3 char *funk(int format);
4 enum Test {A=-1};
5 char *funk(enum Test x);
7 int eli(float b); // expected-note {{previous declaration is here}}
8 int b(int c) {return 1;}
10 int foo();
11 int foo()
13 int eli(int (int)); // expected-error {{conflicting types for 'eli'}}
14 eli(b); // expected-error{{incompatible type passing}}
15 return 0;
18 int bar();
19 int bar(int i) // expected-note {{previous definition is here}}
21 return 0;
23 int bar() // expected-error {{redefinition of 'bar'}}
25 return 0;
28 int foobar(int); // note {{previous declaration is here}}
29 int foobar() // error {{conflicting types for 'foobar'}}
31 return 0;
34 int wibble(); // expected-note {{previous declaration is here}}
35 float wibble() // expected-error {{conflicting types for 'wibble'}}
37 return 0.0f;