Skip to content

Commit

Permalink
[OpenMP][libomptarget][Fix] Add missing array initialization (#76457)
Browse files Browse the repository at this point in the history
Add missing array initialization as the array was not initialized and
the value zero was assumed.
  • Loading branch information
doru1004 authored Dec 27, 2023
1 parent 840e23a commit a01b58a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ int main() {

dat.datum[7] = 7;
dat.more_datum[17] = 17;
dat.datum[dat.arr[0][0]] = 0;

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

0 comments on commit a01b58a

Please sign in to comment.