werror.c 219 B

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