[OPENMP]Add assignment operator in UDR test, NFC.

Add assignment operator in the test to check that even if the operator
was declare explicitly, the constructor is called in the user-defined
reduction initializer anyway.
This commit is contained in:
Alexey Bataev 2019-11-14 12:58:49 -05:00
parent dcb5bd9109
commit 399e29ddc6
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ struct S : public BaseS, public BaseS1 {
T f;
S(T a) : f(a + g) {}
S() : f(g) {}
S& operator=(const S&);
~S() {}
};
void red(BaseS1&, const BaseS1&);