forked from OSchip/llvm-project
parent
ce550076d0
commit
f60d8ae155
|
@ -5,7 +5,6 @@ unsigned char NotABool = 123;
|
|||
int main(int argc, char **argv) {
|
||||
bool *p = (bool*)&NotABool;
|
||||
|
||||
// FIXME: Provide a better source location here.
|
||||
// CHECK: bool.exe:0x{{[0-9a-f]*}}: runtime error: load of value 123, which is not a valid value for type 'bool'
|
||||
// CHECK: bool.cpp:9:10: runtime error: load of value 123, which is not a valid value for type 'bool'
|
||||
return *p;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue