mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 15:36:05 +00:00

Several tests wouldn't pass when executed on an armv7a_pc_linux triple due to the non-default arm_aapcs calling convention produced on the function definitions in the IR output. Account for this with the application of a little regex. Patch by Ying Yi. llvm-svn: 240971
17 lines
351 B
C++
17 lines
351 B
C++
// RUN: %clang_cc1 %s -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s
|
|
|
|
struct A { int i; };
|
|
struct B { char j; };
|
|
struct C : A, B { int k; };
|
|
|
|
struct D final : virtual C {
|
|
D();
|
|
virtual void f();
|
|
};
|
|
|
|
// CHECK-LABEL: define {{.*}}dereferenceable({{[0-9]+}}) %struct.B* @_Z1fR1D
|
|
B &f(D &d) {
|
|
// CHECK-NOT: load i8*, i8**
|
|
return d;
|
|
}
|