char is a special type in C++ which can be signed/unsigned and have to be distinguished both from "signed char" and from "unsigned char". This test check for this behaviour during the expression evaluation with different compiler settings. Differential revision: http://reviews.llvm.org/D8657 llvm-svn: 233678
11 lines
208 B
C++
11 lines
208 B
C++
int foo(char c) { return 1; }
|
|
int foo(signed char c) { return 2; }
|
|
int foo(unsigned char c) { return 3; }
|
|
|
|
int main() {
|
|
char c = 0;
|
|
signed char sc = 0;
|
|
unsigned char uc = 0;
|
|
return 0; // Break here
|
|
}
|