blob: fb6f9551a7ac594997ca0b1987c224bee28d1ffd [file] [log] [blame]
Douglas Gregor4038cf42010-06-08 17:35:15 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3int* j = false; // expected-warning{{ initialization of pointer of type 'int *' from literal 'false'}}
4
5void foo(int* i, int *j=(false)) // expected-warning{{ initialization of pointer of type 'int *' from literal 'false'}}
6{
7 foo(false); // expected-warning{{ initialization of pointer of type 'int *' from literal 'false'}}
Argyrios Kyrtzidisd6ea6bd2010-09-28 14:54:11 +00008 foo((int*)false);
Douglas Gregor4038cf42010-06-08 17:35:15 +00009}
10