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

6 lines
178 B
C

// RUN: %clang_cc1 %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}}