1 // RUN: %clang -fsanitize=alignment %s -o %t && %run %t 2>&1 | FileCheck %s --check-prefixes=CHECK
5 int main(int argc
, char *argv
[]) {
7 char *ptr
= (char *)malloc(2);
9 void *t
= __builtin_assume_aligned(ptr
+ 1, 0x8000);
11 // CHECK: ubsan: alignment-assumption by 0x{{[[:xdigit:]]+$}}
12 // CHECK-NOT: alignment-assumption