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