2014-02-14 16:56:25 +08:00
|
|
|
// Sanitizers need to unwind stack at any code location.
|
|
|
|
// Test that unwind tables are enabled in supported configurations.
|
|
|
|
|
|
|
|
// RUN: %clang -target x86_64-linux-gnu -fsanitize=address %s -### 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -target i686-linux-gnu -fsanitize=address %s -### 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -target arm-linux-androideabi -fsanitize=address %s -### 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -target x86_64-linux-gnu -fsanitize=memory %s -### 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -target x86_64-linux-gnu -fsanitize=thread %s -### 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -target x86_64-linux-gnu -fsanitize=dataflow %s -### 2>&1 | FileCheck %s
|
2017-12-09 09:32:07 +08:00
|
|
|
// RUN: %clang -target aarch64-linux-gnu -fsanitize=hwaddress %s -### 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -target aarch64-linux-android -fsanitize=hwaddress %s -### 2>&1 | FileCheck %s
|
2014-02-14 16:56:25 +08:00
|
|
|
|
2021-09-24 07:15:40 +08:00
|
|
|
// CHECK: -funwind-tables=2
|