Skip to content

Commit a01b58a

Browse files
authored
[OpenMP][libomptarget][Fix] Add missing array initialization (#76457)
Add missing array initialization as the array was not initialized and the value zero was assumed.
1 parent 840e23a commit a01b58a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

openmp/libomptarget/test/offloading/struct_mapping_with_pointers.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ int main() {
2929

3030
dat.datum[7] = 7;
3131
dat.more_datum[17] = 17;
32+
dat.datum[dat.arr[0][0]] = 0;
3233

3334
/// The struct is mapped with type 0x0 when the pointer fields are mapped.
3435
/// The struct is also map explicitely by the user. The second mapping by

0 commit comments

Comments
 (0)