[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / clang / test / Sema / predefined-function.c
blob21d1439de99c622e8621faef8c114197abe4ec5f
1 // RUN: %clang_cc1 -fsyntax-only -Wno-strict-prototypes -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() {
12 int eli(int (int)); // expected-error {{conflicting types for 'eli'}}
13 eli(b);
14 return 0;
17 int bar();
18 int bar(int i) // expected-note {{previous definition is here}}
20 return 0;
22 int bar() // expected-error {{conflicting types for 'bar'}}
24 return 0;
27 int foobar(int); // expected-note {{previous declaration is here}}
28 int foobar() // expected-error {{conflicting types for 'foobar'}}
30 return 0;
33 int wibble(); // expected-note {{previous declaration is here}}
34 float wibble() // expected-error {{conflicting types for 'wibble'}}
36 return 0.0f;