1f635bcd1SHubert Tong // RUN: %clang_cc1 %s -verify -fsyntax-only 2f635bcd1SHubert Tong // RUN: %clang_cc1 %s -verify -fsyntax-only -fno-signed-char 3f635bcd1SHubert Tong plainToSigned()4f635bcd1SHubert Tongvoid plainToSigned() { 5f635bcd1SHubert Tong extern char c; 6f635bcd1SHubert Tong signed char *p; 7*c6ffe4d7SHubert Tong p = &c; // expected-error {{converts between pointers to integer types where one is of the unique plain 'char' type and the other is not}} 8f635bcd1SHubert Tong } 9f635bcd1SHubert Tong unsignedToPlain()10f635bcd1SHubert Tongvoid unsignedToPlain() { 11f635bcd1SHubert Tong extern unsigned char uc; 12f635bcd1SHubert Tong char *p; 13*c6ffe4d7SHubert Tong p = &uc; // expected-error {{converts between pointers to integer types where one is of the unique plain 'char' type and the other is not}} 14f635bcd1SHubert Tong } 15