1 // Check that sanitizer prints the faulting instruction bytes on
2 // dump_instruction_bytes=1
4 // RUN: %clangxx %s -o %t
5 // RUN: %env_tool_opts=dump_instruction_bytes=1 not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-DUMP
6 // RUN: not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-NODUMP
8 // REQUIRES: x86-target-arch
11 #if defined(__x86_64__)
13 asm("movl $0xcafebabe, 0x0(%rax)");
16 asm("movl $0xcafebabe, 0x0(%eax)");
18 // CHECK-DUMP: First 16 instruction bytes at pc: c7 00 be ba fe ca
19 // CHECK-NODUMP-NOT: First 16 instruction bytes