ldc/tests/codegen/fence_pragma.d
Johan Engelen b409a262d3 Fix LLVM 5.0 build.
Changes in SynchronizationScope, see https://reviews.llvm.org/D21723
2017-07-14 15:01:26 +02:00

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
}