Home | History | Annotate | Download | only in Misc
      1 // RUN: %clangxx -fsanitize=bool %s -O3 -o %t && %run %t 2>&1 | FileCheck %s
      2 
      3 unsigned char NotABool = 123;
      4 
      5 int main(int argc, char **argv) {
      6   bool *p = (bool*)&NotABool;
      7 
      8   // CHECK: bool.cpp:9:10: runtime error: load of value 123, which is not a valid value for type 'bool'
      9   return *p;
     10 }
     11