mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 01:20:51 +03:00
12 lines
345 B
D
12 lines
345 B
D
// RUN: %ldc %s -c -output-ll -of=%t.ll && FileCheck %s < %t.ll
|
|
|
|
// REQUIRES: atmost_llvm400
|
|
|
|
import ldc.intrinsics;
|
|
|
|
void fun0 () {
|
|
llvm_memory_fence(DefaultOrdering, SynchronizationScope.CrossThread);
|
|
// CHECK: fence seq_cst
|
|
llvm_memory_fence(DefaultOrdering, SynchronizationScope.SingleThread);
|
|
// CHECK: fence singlethread seq_cst
|
|
}
|