1 // RUN: %clang -fsanitize=pointer-overflow %s -o %t && %run %t 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-C --implicit-check-not="pointer-overflow"
2 // RUN: %clangxx -x c++ -fsanitize=pointer-overflow %s -o %t && %run %t 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-CPP --implicit-check-not="pointer-overflow"
6 int main(int argc
, char *argv
[]) {
11 // CHECK-C: pointer-overflow by 0x{{[[:xdigit:]]+$}}
12 // CHECK-CPP-NOT: pointer-overflow
16 // CHECK: pointer-overflow by 0x{{[[:xdigit:]]+$}}
20 // CHECK: pointer-overflow by 0x{{[[:xdigit:]]+$}}