[OPENMP]Add assignment operator in UDR test, NFC.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 14 Nov 2019 17:58:49 +0000 (12:58 -0500)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 14 Nov 2019 18:01:16 +0000 (13:01 -0500)
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.

clang/test/OpenMP/for_reduction_codegen_UDR.cpp

index f3816de5f5bf977d49c6b6db00652af553258502..6d8223c724f5386595ec34179a0c897b9a184e45 100644 (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&);