summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCUDA/implicit-intrinsic.cu
blob: 3d24aa719e57d902624925291e807e7ed686cd6e (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -std=gnu++11 -triple nvptx64-unknown-unknown -fsyntax-only -verify %s

#include "Inputs/cuda.h"

// expected-no-diagnostics
__device__ void __threadfence_system() {
  // This shouldn't produce an error, since __nvvm_membar_sys is inferred to
  // be __host__ __device__ and thus callable from device code.
  __nvvm_membar_sys();
}
OpenPOWER on IntegriCloud