From: Alexey Bataev Date: Thu, 14 Nov 2019 17:58:49 +0000 (-0500) Subject: [OPENMP]Add assignment operator in UDR test, NFC. X-Git-Tag: llvmorg-11-init~4258 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=399e29ddc600a2d91e08e7029e7dade3581c9820;p=platform%2Fupstream%2Fllvm.git [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. --- diff --git a/clang/test/OpenMP/for_reduction_codegen_UDR.cpp b/clang/test/OpenMP/for_reduction_codegen_UDR.cpp index f3816de5f5bf..6d8223c724f5 100644 --- a/clang/test/OpenMP/for_reduction_codegen_UDR.cpp +++ b/clang/test/OpenMP/for_reduction_codegen_UDR.cpp @@ -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&);