Douglas Gregor | 2cf2634 | 2009-04-09 22:27:44 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -emit-pch -o %t %S/variables.h && |
| 2 | // RUN: clang-cc -include-pch %t -fsyntax-only -verify %s |
| 3 | |
| 4 | int *ip2 = &x; |
| 5 | float *fp = &ip; // expected-warning{{incompatible pointer types}} |
Douglas Gregor | 14f7900 | 2009-04-10 03:52:48 +0000 | [diff] [blame] | 6 | // FIXME:variables.h expected-note{{previous}} |
| 7 | double z; // expected-error{{redefinition}} |
| 8 | |
| 9 | //double VeryHappy; // FIXME: xpected-error{{redefinition}} |
Douglas Gregor | 2cf2634 | 2009-04-09 22:27:44 +0000 | [diff] [blame] | 10 | |