20 lines · plain
1// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa \2// RUN: -aux-triple x86_64-unknown-linux-gnu \3// RUN: -fcuda-is-device -verify -fsyntax-only %s4// RUN: %clang_cc1 -triple spirv64-amd-amdhsa \5// RUN: -aux-triple x86_64-unknown-linux-gnu \6// RUN: -fcuda-is-device -verify -fsyntax-only %s7// RUN: %clang_cc1 -triple nvptx \8// RUN: -aux-triple x86_64-unknown-linux-gnu \9// RUN: -fcuda-is-device -verify -fsyntax-only %s10 11// expected-no-diagnostics12#define __device__ __attribute__((device))13 14__int128 h_glb;15__device__ __int128 d_unused;16__device__ __int128 d_glb;17__device__ __int128 bar() {18 return d_glb;19}20