Skip to content

Commit 76901bb

Browse files
committed
tests: add constant to global-vars.cu
- also fixed __device__ check
1 parent 73fabd6 commit 76901bb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

clang/test/CIR/CodeGen/CUDA/global-vars.cu

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88

99
__device__ int a;
1010

11-
// CIR-DEVICE: cir.global external addrspace(offload_global) @a = #cir.int<0> : !s32i {alignment = 4 : i64} loc(#loc3)
11+
// CIR-DEVICE: cir.global external addrspace(offload_global) @a ={{.*}}
12+
13+
__constant__ int b;
14+
15+
// CIR-DEVICE: cir.global constant external addrspace(offload_constant) @b ={{.*}}

0 commit comments

Comments
 (0)