blob: 6249feb6b1e711aa2d99429fb2f6b2e1d126c391 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -verify -fsyntax-only
Eli Friedmanf05c05d2009-03-22 23:59:44 +00002
Douglas Gregora41a8c52010-04-22 00:20:18 +00003int a(int* x); // expected-note{{passing argument to parameter 'x' here}}
Douglas Gregord4eea832010-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 Friedmanf05c05d2009-03-22 23:59:44 +00005