2009-04-11 01:25:41 +08:00
|
|
|
// RUN: clang-cc -emit-pch -triple=i686-apple-darwin9 -o %t %S/variables.h &&
|
|
|
|
// RUN: clang-cc -triple=i686-apple-darwin9 -include-pch %t -fsyntax-only -verify %s
|
2009-04-10 06:27:44 +08:00
|
|
|
|
|
|
|
int *ip2 = &x;
|
|
|
|
float *fp = &ip; // expected-warning{{incompatible pointer types}}
|
2009-04-10 11:52:48 +08:00
|
|
|
// FIXME:variables.h expected-note{{previous}}
|
|
|
|
double z; // expected-error{{redefinition}}
|
|
|
|
|
|
|
|
//double VeryHappy; // FIXME: xpected-error{{redefinition}}
|
2009-04-10 06:27:44 +08:00
|
|
|
|