blob: e84ffd93bee564a011008e251620ba12ed9f7732 [file] [log] [blame]
Stephen Linb987eda2013-06-18 20:24:04 +00001// RUN: %clang_cc1 %s -emit-llvm -o - -triple=i686-unknown-linux | FileCheck --check-prefix=CHECKX86 %s
2// RUN: %clang_cc1 %s -emit-llvm -o - -triple=arm-linux-gnueabihf | FileCheck --check-prefix=CHECKARM %s
Eli Friedman77a259c2009-12-08 06:46:18 +00003
4struct A { virtual void a(); };
5A x(A& y) { return y; }
6
Stephen Linb987eda2013-06-18 20:24:04 +00007// CHECKX86: define linkonce_odr {{.*}} @_ZN1AC1ERKS_(%struct.A* %this, %struct.A*) unnamed_addr
8// CHECKX86: store i8** getelementptr inbounds ([3 x i8*]* @_ZTV1A, i64 0, i64 2)
9
10// CHECKARM: define linkonce_odr {{.*}} @_ZN1AC1ERKS_(%struct.A* returned %this, %struct.A*) unnamed_addr
11// CHECKARM: store i8** getelementptr inbounds ([3 x i8*]* @_ZTV1A, i64 0, i64 2)