1*67e74705SXin Li // RUN: %clang_cc1 -triple nvptx64-unknown-unknown -fcuda-is-device \ 2*67e74705SXin Li // RUN: -fsyntax-only -verify %s 3*67e74705SXin Li 4*67e74705SXin Li #include "Inputs/cuda.h" 5*67e74705SXin Li 6*67e74705SXin Li // expected-no-diagnostics __threadfence_system()7*67e74705SXin Li__device__ void __threadfence_system() { 8*67e74705SXin Li // This shouldn't produce an error, since __nvvm_membar_sys should be 9*67e74705SXin Li // __device__ and thus callable from device code. 10*67e74705SXin Li __nvvm_membar_sys(); 11*67e74705SXin Li } 12