9 lines · cpp
1// REQUIRES: amdgpu-registered-target2// RUN: not %clang_cc1 %s -o - -S -triple=amdgcn-amd-amdhsa 2>&1 | FileCheck %s3 4void test_amdgcn_fence_failure() {5 6 // CHECK: error: Unsupported atomic synchronization scope7 __builtin_amdgcn_fence(__ATOMIC_SEQ_CST, "foobar");8}9