diff --git a/openmp/libomptarget/test/offloading/struct_mapping_with_pointers.cpp b/openmp/libomptarget/test/offloading/struct_mapping_with_pointers.cpp index befed120ca138..f0fde50889dac 100644 --- a/openmp/libomptarget/test/offloading/struct_mapping_with_pointers.cpp +++ b/openmp/libomptarget/test/offloading/struct_mapping_with_pointers.cpp @@ -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