[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / clang / test / Sema / builtin-amdgcn-fence-failure.cpp
blob651700cbb63ac09f675c140db43018ccde9143b6
1 // REQUIRES: amdgpu-registered-target
2 // RUN: not %clang_cc1 %s -o - -S -triple=amdgcn-amd-amdhsa 2>&1 | FileCheck %s
4 void test_amdgcn_fence_failure() {
6 // CHECK: error: Unsupported atomic synchronization scope
7 __builtin_amdgcn_fence(__ATOMIC_SEQ_CST, "foobar");