Skip to content

Commit 7b19c92

Browse files
committed
say why things are unsupported on MSVC
1 parent 58cd314 commit 7b19c92

14 files changed

+21
-0
lines changed

compiler-rt/test/asan/TestCases/Windows/dll_stack_use_after_return.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// RUN: %env_asan_opts=detect_stack_use_after_return=1 not %run %t %t.dll 2>&1 | FileCheck %s
44
// RUN: %clang_cl_asan %LD %Od %s %Fe%t.dll -fsanitize-address-use-after-return=always
55
// RUN: not %run %t %t.dll 2>&1 | FileCheck %s
6+
67
// UNSUPPORTED: msvc
78

89
#include <malloc.h>

compiler-rt/test/asan/TestCases/alloca_instruments_all_paddings.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
// RUN: %clangxx_asan -O3 -mllvm -asan-instrument-dynamic-allocas %s -o %t
33
// RUN: %run %t 2>&1
44
//
5+
// MSVC does not support asan-instrament-dynamic-allocas yet
56
// UNSUPPORTED: msvc
67

8+
79
#include "sanitizer/asan_interface.h"
810
#include <assert.h>
911
#include <stdint.h>

compiler-rt/test/asan/TestCases/alloca_loop_unpoisoning.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// REQUIRES: stable-runtime
55

66
// This testcase checks that allocas and VLAs inside loop are correctly unpoisoned.
7+
8+
// MSVC doesn't support VLAs in the first place.
79
// UNSUPPORTED: msvc
810

911
#include "defines.h"

compiler-rt/test/asan/TestCases/alloca_overflow_partial.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %clangxx_asan -O0 -mllvm -asan-instrument-dynamic-allocas %s -o %t
22
// RUN: not %run %t 2>&1 | FileCheck %s
33
//
4+
// MSVC doesn't support VLAs
45
// UNSUPPORTED: msvc
56

67
#include <assert.h>

compiler-rt/test/asan/TestCases/alloca_overflow_right.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %clangxx_asan -O0 -mllvm -asan-instrument-dynamic-allocas %s -o %t
22
// RUN: not %run %t 2>&1 | FileCheck %s
33
//
4+
// MSVC doesn't support VLAs
45
// UNSUPPORTED: msvc
56

67
#include <assert.h>

compiler-rt/test/asan/TestCases/alloca_safe_access.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %clangxx_asan -O0 -mllvm -asan-instrument-dynamic-allocas %s -o %t
22
// RUN: %run %t 2>&1
33
//
4+
// MSVC doesn't support VLAs
45
// UNSUPPORTED: msvc
56

67
#include <assert.h>

compiler-rt/test/asan/TestCases/alloca_underflow_left.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %clangxx_asan -O0 -mllvm -asan-instrument-dynamic-allocas %s -o %t
22
// RUN: not %run %t 2>&1 | FileCheck %s
33
//
4+
// MSVC doesn't support VLAs
45
// UNSUPPORTED: msvc
56

67
#include <assert.h>

compiler-rt/test/asan/TestCases/alloca_vla_interact.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
// XFAIL: target=sparc{{.*}}
88

99
// This testcase checks correct interaction between VLAs and allocas.
10+
11+
// MSVC doesn't support VLA's
1012
// UNSUPPORTED: msvc
1113

1214
#include <assert.h>

compiler-rt/test/asan/TestCases/speculative_load.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// RUN: %clangxx_asan -O1 %s -o %t && %run %t 2>&1
44
// RUN: %clangxx_asan -O2 %s -o %t && %run %t 2>&1
55
// RUN: %clangxx_asan -O3 %s -o %t && %run %t 2>&1
6+
7+
// MSVC doesn't support GCC style inline assembly
68
// UNSUPPORTED: msvc
79

810
#include <sanitizer/asan_interface.h>

compiler-rt/test/asan/TestCases/stack-oob-frames.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// RUN: not %run %t 1 2>&1 | FileCheck %s --check-prefix=CHECK1
44
// RUN: not %run %t 2 2>&1 | FileCheck %s --check-prefix=CHECK2
55
// RUN: not %run %t 3 2>&1 | FileCheck %s --check-prefix=CHECK3
6+
7+
// MSVC doesn't support GCC style inline ASM
68
// UNSUPPORTED: msvc
79

810
#define NOINLINE __attribute__((noinline))

compiler-rt/test/asan/TestCases/throw_call_test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// RUN: %clangxx_asan %s -o %t && %run %t
22
// http://code.google.com/p/address-sanitizer/issues/detail?id=147 (not fixed).
33
// BROKEN: %clangxx_asan %s -o %t -static-libstdc++ && %run %t
4+
5+
// MSVC doesn't support GCC style inline ASM
46
// UNSUPPORTED: msvc
57

68
#include "defines.h"

compiler-rt/test/asan/TestCases/vla_chrome_testcase.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %clangxx_asan -O0 -mllvm -asan-instrument-dynamic-allocas %s -o %t
22
// RUN: not %run %t 2>&1 | FileCheck %s
33
//
4+
// MSVC doesn't support VLAs
45
// UNSUPPORTED: msvc
56

67
// This is reduced testcase based on Chromium code.

compiler-rt/test/asan/TestCases/vla_condition_overflow.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// RUN: not %run %t 2>&1 | FileCheck %s
33
//
44
// REQUIRES: stable-runtime
5+
// MSVC doesn't support VLAs
56
// UNSUPPORTED: msvc
67

78
#include "defines.h"

compiler-rt/test/asan/TestCases/vla_loop_overfow.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// RUN: not %run %t 2>&1 | FileCheck %s
33
//
44
// REQUIRES: stable-runtime
5+
6+
// MSVC doesn't support VLAs
57
// UNSUPPORTED: msvc
68

79
#include <assert.h>

0 commit comments

Comments
 (0)