llvm-project/clang/test/Sema/incompatible-sign.c

6 lines
176 B
C

// RUN: clang-cc %s -verify -fsyntax-only
int a(int* x);
int b(unsigned* y) { return a(y); } // expected-warning {{pointer types point to integer types with different sign}}