diff options
Diffstat (limited to 'compiler-rt/lib/ubsan/lit_tests/Misc/bool.cpp')
| -rw-r--r-- | compiler-rt/lib/ubsan/lit_tests/Misc/bool.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler-rt/lib/ubsan/lit_tests/Misc/bool.cpp b/compiler-rt/lib/ubsan/lit_tests/Misc/bool.cpp index 4df1fb82a5d..8fafe7eac05 100644 --- a/compiler-rt/lib/ubsan/lit_tests/Misc/bool.cpp +++ b/compiler-rt/lib/ubsan/lit_tests/Misc/bool.cpp @@ -1,10 +1,11 @@ -// RUN: %clang -fsanitize=bool %s -O3 -o %t && %t 2>&1 | FileCheck %s +// RUN: %clang -fsanitize=bool %s -O3 -o %T/bool.exe && %T/bool.exe 2>&1 | FileCheck %s unsigned char NotABool = 123; int main(int argc, char **argv) { bool *p = (bool*)&NotABool; - // CHECK: error: load of value 123, which is not a valid value for type 'bool' + // 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' return *p; } |

