2010-06-09 01:35:15 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
|
|
|
|
int* j = false; // expected-warning{{ initialization of pointer of type 'int *' from literal 'false'}}
|
|
|
|
|
|
|
|
void foo(int* i, int *j=(false)) // expected-warning{{ initialization of pointer of type 'int *' from literal 'false'}}
|
|
|
|
{
|
|
|
|
foo(false); // expected-warning{{ initialization of pointer of type 'int *' from literal 'false'}}
|
2010-09-28 22:54:11 +08:00
|
|
|
foo((int*)false);
|
2010-06-09 01:35:15 +08:00
|
|
|
}
|
|
|
|
|