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