xref: /minix3/external/bsd/llvm/dist/clang/test/Index/werror.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)

get_int_ptr(float * fp)1*f4a2713aSLionel Sambuc inline int *get_int_ptr(float *fp) {
2*f4a2713aSLionel Sambuc   return fp;
3*f4a2713aSLionel Sambuc }
4*f4a2713aSLionel Sambuc 
5*f4a2713aSLionel Sambuc #ifdef FATAL
6*f4a2713aSLionel Sambuc void fatal(int);
7*f4a2713aSLionel Sambuc void fatal(float);
8*f4a2713aSLionel Sambuc #endif
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc // RUN: c-index-test -write-pch %t.pch -Werror %s
11*f4a2713aSLionel Sambuc // RUN: c-index-test -write-pch %t.pch -DFATAL -Werror %s
12*f4a2713aSLionel Sambuc 
13