2015-09-23 01:23:05 +08:00
|
|
|
// RUN: %clang_cc1 -triple nvptx64-unknown-unknown -fcuda-is-device \
|
|
|
|
// RUN: -fsyntax-only -verify %s
|
2014-10-01 01:38:34 +08:00
|
|
|
|
|
|
|
#include "Inputs/cuda.h"
|
|
|
|
|
|
|
|
// expected-no-diagnostics
|
|
|
|
__device__ void __threadfence_system() {
|
2015-09-23 01:23:05 +08:00
|
|
|
// This shouldn't produce an error, since __nvvm_membar_sys should be
|
|
|
|
// __device__ and thus callable from device code.
|
2014-10-01 01:38:34 +08:00
|
|
|
__nvvm_membar_sys();
|
|
|
|
}
|