Douglas Gregor | 8038d51 | 2009-04-10 17:25:41 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -emit-pch -triple=i686-apple-darwin9 -o %t %S/variables.h && |
| 2 | // RUN: clang-cc -triple=i686-apple-darwin9 -include-pch %t -fsyntax-only -verify %s |
Douglas Gregor | 2cf2634 | 2009-04-09 22:27:44 +0000 | [diff] [blame] | 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 | |
Chris Lattner | 531cc83 | 2009-04-10 22:13:17 +0000 | [diff] [blame^] | 11 | |
| 12 | int Q = A_MACRO_IN_THE_PCH; |
| 13 | |