xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/virtual-implicit-copy-assignment.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s
2f4a2713aSLionel Sambuc 
3f4a2713aSLionel Sambuc struct D;
4f4a2713aSLionel Sambuc struct B {
5f4a2713aSLionel Sambuc  virtual D& operator = (const D&);
6f4a2713aSLionel Sambuc };
7f4a2713aSLionel Sambuc struct D : B { D(); virtual void a(); };
a()8f4a2713aSLionel Sambuc void D::a() {}
9f4a2713aSLionel Sambuc 
10f4a2713aSLionel Sambuc // CHECK: @_ZTV1D = {{.*}} @_ZN1DaSERKS_
11f4a2713aSLionel Sambuc // CHECK: define linkonce_odr {{.*}} @_ZN1DaSERKS_
12