@@ -26,7 +26,7 @@ __shared__ int s_v;
2626// DEVICE: @s_v ={{.*}} addrspace(3) global i32 undef,
2727// HOST: @s_v = internal global i32 undef,
2828__constant__ int c_v;
29- // DEVICE: addrspace(4) externally_initialized global i32 0,
29+ // DEVICE: addrspace(4) externally_initialized constant i32 0,
3030// HOST: @c_v = internal global i32 undef,
3131
3232__device__ int d_v_i = 1 ;
@@ -51,14 +51,14 @@ __shared__ T s_t;
5151// DEVICE: @s_t ={{.*}} addrspace(3) global %struct.T undef,
5252// HOST: @s_t = internal global %struct.T undef,
5353__constant__ T c_t ;
54- // DEVICE: @c_t ={{.*}} addrspace(4) externally_initialized global %struct.T zeroinitializer,
54+ // DEVICE: @c_t ={{.*}} addrspace(4) externally_initialized constant %struct.T zeroinitializer,
5555// HOST: @c_t = internal global %struct.T undef,
5656
5757__device__ T d_t_i = {2 };
5858// DEVICE: @d_t_i ={{.*}} addrspace(1) externally_initialized global %struct.T { i32 2 },
5959// HOST: @d_t_i = internal global %struct.T undef,
6060__constant__ T c_t_i = {2 };
61- // DEVICE: @c_t_i ={{.*}} addrspace(4) externally_initialized global %struct.T { i32 2 },
61+ // DEVICE: @c_t_i ={{.*}} addrspace(4) externally_initialized constant %struct.T { i32 2 },
6262// HOST: @c_t_i = internal global %struct.T undef,
6363
6464// empty constructor
@@ -69,7 +69,7 @@ __shared__ EC s_ec;
6969// DEVICE: @s_ec ={{.*}} addrspace(3) global %struct.EC undef,
7070// HOST: @s_ec = internal global %struct.EC undef,
7171__constant__ EC c_ec;
72- // DEVICE: @c_ec ={{.*}} addrspace(4) externally_initialized global %struct.EC zeroinitializer,
72+ // DEVICE: @c_ec ={{.*}} addrspace(4) externally_initialized constant %struct.EC zeroinitializer,
7373// HOST: @c_ec = internal global %struct.EC undef
7474
7575// empty destructor
@@ -80,7 +80,7 @@ __shared__ ED s_ed;
8080// DEVICE: @s_ed ={{.*}} addrspace(3) global %struct.ED undef,
8181// HOST: @s_ed = internal global %struct.ED undef,
8282__constant__ ED c_ed;
83- // DEVICE: @c_ed ={{.*}} addrspace(4) externally_initialized global %struct.ED zeroinitializer,
83+ // DEVICE: @c_ed ={{.*}} addrspace(4) externally_initialized constant %struct.ED zeroinitializer,
8484// HOST: @c_ed = internal global %struct.ED undef,
8585
8686__device__ ECD d_ecd;
@@ -90,7 +90,7 @@ __shared__ ECD s_ecd;
9090// DEVICE: @s_ecd ={{.*}} addrspace(3) global %struct.ECD undef,
9191// HOST: @s_ecd = internal global %struct.ECD undef,
9292__constant__ ECD c_ecd;
93- // DEVICE: @c_ecd ={{.*}} addrspace(4) externally_initialized global %struct.ECD zeroinitializer,
93+ // DEVICE: @c_ecd ={{.*}} addrspace(4) externally_initialized constant %struct.ECD zeroinitializer,
9494// HOST: @c_ecd = internal global %struct.ECD undef,
9595
9696// empty templated constructor -- allowed with no arguments
@@ -101,14 +101,14 @@ __shared__ ETC s_etc;
101101// DEVICE: @s_etc ={{.*}} addrspace(3) global %struct.ETC undef,
102102// HOST: @s_etc = internal global %struct.ETC undef,
103103__constant__ ETC c_etc;
104- // DEVICE: @c_etc ={{.*}} addrspace(4) externally_initialized global %struct.ETC zeroinitializer,
104+ // DEVICE: @c_etc ={{.*}} addrspace(4) externally_initialized constant %struct.ETC zeroinitializer,
105105// HOST: @c_etc = internal global %struct.ETC undef,
106106
107107__device__ NCFS d_ncfs;
108108// DEVICE: @d_ncfs ={{.*}} addrspace(1) externally_initialized global %struct.NCFS { i32 3 }
109109// HOST: @d_ncfs = internal global %struct.NCFS undef,
110110__constant__ NCFS c_ncfs;
111- // DEVICE: @c_ncfs ={{.*}} addrspace(4) externally_initialized global %struct.NCFS { i32 3 }
111+ // DEVICE: @c_ncfs ={{.*}} addrspace(4) externally_initialized constant %struct.NCFS { i32 3 }
112112// HOST: @c_ncfs = internal global %struct.NCFS undef,
113113
114114// Regular base class -- allowed
@@ -119,7 +119,7 @@ __shared__ T_B_T s_t_b_t;
119119// DEVICE: @s_t_b_t ={{.*}} addrspace(3) global %struct.T_B_T undef,
120120// HOST: @s_t_b_t = internal global %struct.T_B_T undef,
121121__constant__ T_B_T c_t_b_t ;
122- // DEVICE: @c_t_b_t ={{.*}} addrspace(4) externally_initialized global %struct.T_B_T zeroinitializer,
122+ // DEVICE: @c_t_b_t ={{.*}} addrspace(4) externally_initialized constant %struct.T_B_T zeroinitializer,
123123// HOST: @c_t_b_t = internal global %struct.T_B_T undef,
124124
125125// Incapsulated object of allowed class -- allowed
@@ -130,7 +130,7 @@ __shared__ T_F_T s_t_f_t;
130130// DEVICE: @s_t_f_t ={{.*}} addrspace(3) global %struct.T_F_T undef,
131131// HOST: @s_t_f_t = internal global %struct.T_F_T undef,
132132__constant__ T_F_T c_t_f_t ;
133- // DEVICE: @c_t_f_t ={{.*}} addrspace(4) externally_initialized global %struct.T_F_T zeroinitializer,
133+ // DEVICE: @c_t_f_t ={{.*}} addrspace(4) externally_initialized constant %struct.T_F_T zeroinitializer,
134134// HOST: @c_t_f_t = internal global %struct.T_F_T undef,
135135
136136// array of allowed objects -- allowed
@@ -141,7 +141,7 @@ __shared__ T_FA_T s_t_fa_t;
141141// DEVICE: @s_t_fa_t ={{.*}} addrspace(3) global %struct.T_FA_T undef,
142142// HOST: @s_t_fa_t = internal global %struct.T_FA_T undef,
143143__constant__ T_FA_T c_t_fa_t ;
144- // DEVICE: @c_t_fa_t ={{.*}} addrspace(4) externally_initialized global %struct.T_FA_T zeroinitializer,
144+ // DEVICE: @c_t_fa_t ={{.*}} addrspace(4) externally_initialized constant %struct.T_FA_T zeroinitializer,
145145// HOST: @c_t_fa_t = internal global %struct.T_FA_T undef,
146146
147147
@@ -153,7 +153,7 @@ __shared__ EC_I_EC s_ec_i_ec;
153153// DEVICE: @s_ec_i_ec ={{.*}} addrspace(3) global %struct.EC_I_EC undef,
154154// HOST: @s_ec_i_ec = internal global %struct.EC_I_EC undef,
155155__constant__ EC_I_EC c_ec_i_ec;
156- // DEVICE: @c_ec_i_ec ={{.*}} addrspace(4) externally_initialized global %struct.EC_I_EC zeroinitializer,
156+ // DEVICE: @c_ec_i_ec ={{.*}} addrspace(4) externally_initialized constant %struct.EC_I_EC zeroinitializer,
157157// HOST: @c_ec_i_ec = internal global %struct.EC_I_EC undef,
158158
159159// DEVICE: @_ZZ2dfvE4s_ec = internal addrspace(3) global %struct.EC undef
0 commit comments