2 /* Check that classes with virtual member functions works,
3 when using it as declared type. */
8 virtual ~base() = default;
11 struct derived : public base {
18 #pragma omp target map (tofrom: this[:1], error)
20 if (scalar != 42 || this->array[0] != 123 || array[4] != 555)
22 if (data[0] != 333 || data[99] != -3)
32 if (data[0] != 11 || data[99] != 99)
34 if (scalar != 99 || array[0] != 5 || array[4] != -4)