================ @@ -0,0 +1,522 @@ +// RUN: %clang_cc1 -fopenacc -triple x86_64-linux-gnu -Wno-openacc-self-if-potential-conflict -emit-cir -fclangir -triple x86_64-linux-pc %s -o - | FileCheck %s + +struct NoCopyConstruct {}; + +struct CopyConstruct { + CopyConstruct() = default; + CopyConstruct(const CopyConstruct&); +}; + +struct NonDefaultCtor { + NonDefaultCtor(); ---------------- erichkeane wrote:
Hi! Thanks! I definitely mis-understood a previous discussion. I'll work on getting the FE to do a default-init for the `init` section. For `firstprivate`, it isn't clear why the `copy` is separate unless there is optimization opportunities, but having the FE put the copy operation in that region is easy enough. https://github.com/llvm/llvm-project/pull/151360 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits