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