Douglas Gregor | 1e9bf3b | 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 | ef84c4b | 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 | a7f71a9 | 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 | ef84c4b | 2009-04-09 22:27:44 +0000 | [diff] [blame] | 10 | |