blob: b3c1e9a44e826054b0b7272e90a16957a6c2cb21 [file] [log] [blame]
Daniel Dunbar8fbe78f2009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -verify -fsyntax-only
Eli Friedman80160bd2009-03-22 23:59:44 +00002
3int a(int* x);
Douglas Gregorc68e1402010-04-09 00:35:39 +00004int b(unsigned* y) { return a(y); } // expected-warning {{passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign}}
Eli Friedman80160bd2009-03-22 23:59:44 +00005