[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / clang / test / Sema / incompatible-sign.cpp
blob6ad1466ba9e487843933a818c2bf7603d0c97200
1 // RUN: %clang_cc1 %s -verify -fsyntax-only
2 // RUN: %clang_cc1 %s -verify -fsyntax-only -fno-signed-char
4 void plainToSigned() {
5 extern char c;
6 signed char *p;
7 p = &c; // expected-error {{converts between pointers to integer types where one is of the unique plain 'char' type and the other is not}}
10 void unsignedToPlain() {
11 extern unsigned char uc;
12 char *p;
13 p = &uc; // expected-error {{converts between pointers to integer types where one is of the unique plain 'char' type and the other is not}}