[clang] 399e29d - [OPENMP]Add assignment operator in UDR test, NFC.

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 14 10:01:28 PST 2019


Author: Alexey Bataev
Date: 2019-11-14T13:01:16-05:00
New Revision: 399e29ddc600a2d91e08e7029e7dade3581c9820

URL: https://github.com/llvm/llvm-project/commit/399e29ddc600a2d91e08e7029e7dade3581c9820
DIFF: https://github.com/llvm/llvm-project/commit/399e29ddc600a2d91e08e7029e7dade3581c9820.diff

LOG: [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.

Added: 
    

Modified: 
    clang/test/OpenMP/for_reduction_codegen_UDR.cpp

Removed: 
    


################################################################################
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&);


        


More information about the cfe-commits mailing list