Evgeniy Stepanov | 7429c59 | 2014-02-14 08:56:25 +0000 | [diff] [blame] | 1 | // Sanitizers need to unwind stack at any code location. |
| 2 | // Test that unwind tables are enabled in supported configurations. |
| 3 | |
| 4 | // RUN: %clang -target x86_64-linux-gnu -fsanitize=address %s -### 2>&1 | FileCheck %s |
| 5 | // RUN: %clang -target i686-linux-gnu -fsanitize=address %s -### 2>&1 | FileCheck %s |
| 6 | // RUN: %clang -target arm-linux-androideabi -fsanitize=address %s -### 2>&1 | FileCheck %s |
| 7 | // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory %s -### 2>&1 | FileCheck %s |
| 8 | // RUN: %clang -target x86_64-linux-gnu -fsanitize=thread %s -### 2>&1 | FileCheck %s |
| 9 | // RUN: %clang -target x86_64-linux-gnu -fsanitize=dataflow %s -### 2>&1 | FileCheck %s |
Derek Bruening | 256c2e1 | 2016-04-21 21:32:04 +0000 | [diff] [blame] | 10 | // RUN: %clang -target x86_64-linux-gnu -fsanitize=efficiency-cache-frag %s -### 2>&1 | FileCheck %s |
Derek Bruening | 293772e | 2016-05-25 00:41:24 +0000 | [diff] [blame] | 11 | // RUN: %clang -target x86_64-linux-gnu -fsanitize=efficiency-working-set %s -### 2>&1 | FileCheck %s |
Evgeniy Stepanov | 7429c59 | 2014-02-14 08:56:25 +0000 | [diff] [blame] | 12 | |
| 13 | // CHECK: -munwind-tables |