Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / SemaCUDA / implicit-intrinsic.cu
blobdba26c553912e3332e96e865eaf91c95cc2faf0d
1 // RUN: %clang_cc1 -triple nvptx64-unknown-unknown -fcuda-is-device \
2 // RUN:     -fsyntax-only -verify %s
4 #include "Inputs/cuda.h"
6 // expected-no-diagnostics
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();