summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/wasm-target-features.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Preprocessor/wasm-target-features.c')
-rw-r--r--clang/test/Preprocessor/wasm-target-features.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/test/Preprocessor/wasm-target-features.c b/clang/test/Preprocessor/wasm-target-features.c
index 30bc76abae5..3ab22500c15 100644
--- a/clang/test/Preprocessor/wasm-target-features.c
+++ b/clang/test/Preprocessor/wasm-target-features.c
@@ -52,11 +52,13 @@
//
// BULK-MEMORY:#define __wasm_bulk_memory__ 1{{$}}
//
+// We don't use -matomics directly and '-mthread-model posix' sets the atomics
+// target feature.
// RUN: %clang -E -dM %s -o - 2>&1 \
-// RUN: -target wasm32-unknown-unknown -matomics \
+// RUN: -target wasm32-unknown-unknown -mthread-model posix \
// RUN: | FileCheck %s -check-prefix=ATOMICS
// RUN: %clang -E -dM %s -o - 2>&1 \
-// RUN: -target wasm64-unknown-unknown -matomics \
+// RUN: -target wasm64-unknown-unknown -mthread-model posix \
// RUN: | FileCheck %s -check-prefix=ATOMICS
//
// ATOMICS:#define __wasm_atomics__ 1{{$}}
OpenPOWER on IntegriCloud