================ @@ -0,0 +1,59 @@ +// RUN: %clang_cc1 -triple x86_64-linux-gnu -gkey-instructions %s -gno-column-info -debug-info-kind=line-tables-only -emit-llvm -o - \ +// RUN: | FileCheck %s + +// g::h and i can be memcpy'd, check the assignment gets Key Instructions metadata. + +struct e { + e(e &); + e& operator=(const e&); +}; + +struct g { + e f; + int h; + int i; +}; + +// Copy assignment operator. +// CHECK: define{{.*}}ptr @_ZN1gaSERKS_ ---------------- OCHyams wrote:
Isn't that already covered by `-triple x86_64-linux-gnu`? Happy to change it to `%itanium_abi_triple` if you think that's better? https://github.com/llvm/llvm-project/pull/144346 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits