xref: /minix3/external/bsd/llvm/dist/clang/test/Driver/sanitize_unwind_tables.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // Sanitizers need to unwind stack at any code location.
2*0a6a1f1dSLionel Sambuc // Test that unwind tables are enabled in supported configurations.
3*0a6a1f1dSLionel Sambuc 
4*0a6a1f1dSLionel Sambuc // RUN: %clang -target x86_64-linux-gnu -fsanitize=address %s -### 2>&1 |  FileCheck %s
5*0a6a1f1dSLionel Sambuc // RUN: %clang -target i686-linux-gnu -fsanitize=address %s -### 2>&1 |  FileCheck %s
6*0a6a1f1dSLionel Sambuc // RUN: %clang -target arm-linux-androideabi -fsanitize=address %s -### 2>&1 |  FileCheck %s
7*0a6a1f1dSLionel Sambuc // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory %s -### 2>&1 |  FileCheck %s
8*0a6a1f1dSLionel Sambuc // RUN: %clang -target x86_64-linux-gnu -fsanitize=thread %s -### 2>&1 |  FileCheck %s
9*0a6a1f1dSLionel Sambuc // RUN: %clang -target x86_64-linux-gnu -fsanitize=dataflow %s -### 2>&1 |  FileCheck %s
10*0a6a1f1dSLionel Sambuc 
11*0a6a1f1dSLionel Sambuc // CHECK: -munwind-tables
12