diamond.c revision fac4ece118d43e43e625c6d2b9a98905b1372d51
1// in diamond-bottom.h: expected-note{{passing argument to parameter 'x' here}}
2void test_diamond(int i, float f, double d, char c) {
3  top(&i);
4  left(&f);
5  right(&d);
6  bottom(&c);
7  bottom(&d); // expected-warning{{incompatible pointer types passing 'double *' to parameter of type 'char *'}}
8}
9
10// RUN: %clang_cc1 -emit-pch -o %t_top.h.pch %S/Inputs/diamond_top.h
11// RUN: %clang_cc1 -import-module %t_top.h.pch -emit-pch -o %t_left.h.pch %S/Inputs/diamond_left.h
12// RUN: %clang_cc1 -import-module %t_top.h.pch -emit-pch -o %t_right.h.pch %S/Inputs/diamond_right.h
13// RUN: %clang_cc1 -import-module %t_left.h.pch -import-module %t_right.h.pch -emit-pch -o %t_bottom.h.pch %S/Inputs/diamond_bottom.h
14// RUN: %clang_cc1 -import-module %t_bottom.h.pch -verify %s
15