aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/incompatible-sign.c
blob: b3c1e9a44e826054b0b7272e90a16957a6c2cb21 (plain)
1
2
3
4
5
// RUN: %clang_cc1 %s -verify -fsyntax-only

int a(int* x);
int 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}}