llvm-project/clang/test/PCH/functions.h
Douglas Gregor 4f4946aaaa Whenever we complain about a failed initialization of a function or
method parameter, provide a note pointing at the parameter itself so
the user does not have to manually look for the function/method being
called and match up parameters to arguments. For example, we now get:

t.c:4:5: warning: incompatible pointer types passing 'long *' to
parameter of
      type 'int *' [-pedantic]
  f(long_ptr);
    ^~~~~~~~
t.c:1:13: note: passing argument to parameter 'x' here
void f(int *x);
            ^

llvm-svn: 102038
2010-04-22 00:20:18 +00:00

12 lines
165 B
C

/* For use with the functions.c test */
int f0(int x, int y, ...);
float *f1(float x, float y);
void g0(int *);
void do_abort(int) __attribute__((noreturn));