1 ! Test that flang forwards the -moutline-atomics and -mno-outline-atomics.
2 ! RUN: %flang -moutline-atomics --target=aarch64-none-none -### %s -o %t 2>&1 | FileCheck %s
3 ! CHECK: "-target-feature" "+outline-atomics"
5 ! RUN: %flang -mno-outline-atomics --target=aarch64-none-none -### %s -o %t 2>&1 | FileCheck %s --check-prefix=CHECK-NOOUTLINE
6 ! CHECK-NOOUTLINE: "-target-feature" "-outline-atomics"
8 ! Use Fuchsia to ensure the outline atomics is enabled.
9 ! RUN: %flang --target=aarch64-none-fuchsia -### %s -o %t 2>&1 | FileCheck %s --check-prefix=CHECK-DEFAULT
10 ! CHECK-DEFAULT: "-target-feature" "+outline-atomics"
12 ! RUN: %flang -mno-outline-atomics --target=x86-none-none -### %s -o %t 2>&1 | FileCheck %s --check-prefix=CHECK-ERRMSG
13 ! CHECK-ERRMSG: warning: 'x86' does not support '-mno-outline-atomics'