You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
507 B
22 lines
507 B
4 months ago
|
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=ppc64-windows-msvc | FileCheck %s
|
||
|
|
||
|
// The purpose of this test is to see that we do something reasonable for
|
||
|
// architectures where we haven't checked what MSVC does.
|
||
|
|
||
|
struct A {
|
||
|
A() : a(42) {}
|
||
|
A(const A &o) : a(o.a) {}
|
||
|
~A() {}
|
||
|
int a;
|
||
|
};
|
||
|
|
||
|
struct B {
|
||
|
A foo(A o);
|
||
|
};
|
||
|
|
||
|
A B::foo(A x) {
|
||
|
return x;
|
||
|
}
|
||
|
|
||
|
// CHECK-LABEL: define void @"?foo@B@@QEAA?AUA@@U2@@Z"(%struct.B* {{[^,]*}} %this, %struct.A* noalias sret(%struct.A) align 4 %agg.result, %struct.A* %x)
|