xref: /llvm-project/clang/test/SemaCUDA/allow-int128.cu (revision 88e2bb40921f35663e16e45514de20018615c36f)
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 %s
4 // RUN: %clang_cc1 -triple spirv64-amd-amdhsa \
5 // RUN:   -aux-triple x86_64-unknown-linux-gnu \
6 // RUN:   -fcuda-is-device -verify -fsyntax-only %s
7 // RUN: %clang_cc1 -triple nvptx \
8 // RUN:   -aux-triple x86_64-unknown-linux-gnu \
9 // RUN:   -fcuda-is-device -verify -fsyntax-only %s
10 
11 // expected-no-diagnostics
12 #define __device__ __attribute__((device))
13 
14 __int128 h_glb;
15 __device__ __int128 d_unused;
16 __device__ __int128 d_glb;
bar()17 __device__ __int128 bar() {
18   return d_glb;
19 }
20