aboutsummaryrefslogtreecommitdiff
path: root/test/Driver/sanitize_unwind_tables.c
blob: 8b7889966657c65c73be8288862516888d2fc89c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// 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

// CHECK: -munwind-tables