blob: 150095d8599cb6297f17b3781b5523561d482ad6 [file] [log] [blame]
Douglas Gregor85bea972011-07-06 17:40:26 +00001inline int *get_int_ptr(float *fp) {
2 return fp;
3}
4
5#ifdef FATAL
6void fatal(int);
7void fatal(float);
8#endif
9
10// CHECK-FATAL: translation errors
11
12// RUN: c-index-test -write-pch %t.pch -Werror %s
13// RUN: not c-index-test -write-pch %t.pch -DFATAL -Werror %s 2>%t.err
14// RUN: FileCheck -check-prefix=CHECK-FATAL %s < %t.err
15