blob: dc9ca23cdf9d0115c899c67951f748660e8e907a [file] [log] [blame]
Stephen Hines651f13c2014-04-23 16:59:28 -07001// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s
Eli Friedman77a259c2009-12-08 06:46:18 +00002
3struct A { virtual void a(); };
4A x(A& y) { return y; }
5
Stephen Hines176edba2014-12-01 14:53:08 -08006// CHECK: define linkonce_odr {{.*}} @_ZN1AC1ERKS_(%struct.A* {{.*}}%this, %struct.A* dereferenceable({{[0-9]+}})) unnamed_addr
Pirama Arumuga Nainar3ea9e332015-04-08 08:57:32 -07007// CHECK: store i32 (...)** bitcast (i8** getelementptr inbounds ([3 x i8*], [3 x i8*]* @_ZTV1A, i64 0, i64 2) to i32 (...)**)