forked from OSchip/llvm-project
[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:
parent
dcb5bd9109
commit
399e29ddc6
|
@ -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&);
|
||||
|
|
Loading…
Reference in New Issue