1 RUN: rm -f %t-AlignmentAssumptionTest-Ubsan
2 RUN: %cpp_compiler -fsanitize=alignment -fno-sanitize-recover=all %S/AlignmentAssumptionTest.cpp -o %t-AlignmentAssumptionTest-Ubsan
3 RUN: not %run %t-AlignmentAssumptionTest-Ubsan 2>&1 | FileCheck %s
4 CHECK: AlignmentAssumptionTest.cpp:23:48: runtime error: assumption of 32768 byte alignment for pointer of type 'const {{.*}} *' (aka 'const unsigned char *') failed
5 CHECK: 0x{{.*}}: note: address is {{.*}} aligned, misalignment offset is {{.*}} byte
7 CHECK: Test unit written to ./crash-