diff options
Diffstat (limited to 'lib/ubsan/lit_tests/TestCases/Misc/bool.cpp')
-rw-r--r-- | lib/ubsan/lit_tests/TestCases/Misc/bool.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/ubsan/lit_tests/TestCases/Misc/bool.cpp b/lib/ubsan/lit_tests/TestCases/Misc/bool.cpp deleted file mode 100644 index e916e7fb3c1d5..0000000000000 --- a/lib/ubsan/lit_tests/TestCases/Misc/bool.cpp +++ /dev/null @@ -1,10 +0,0 @@ -// RUN: %clangxx -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: bool.cpp:9:10: runtime error: load of value 123, which is not a valid value for type 'bool' - return *p; -} |