summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjCXX/msabi-stret.mm
blob: 765c23887bacdee1d1cfe38b490b3bec67de17bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: %clang_cc1 -triple i686-unknown-windows-msvc -fobjc-runtime=ios-6.0 -Os -S -emit-llvm -o - %s -mdisable-fp-elim | FileCheck %s

struct S {
  S() = default;
  S(const S &) {}
};

@interface I
+ (S)m:(S)s;
@end

S f() {
  return [I m:S()];
}

// CHECK: declare dllimport void @objc_msgSend_stret(i8*, i8*, ...)
// CHECK-NOT: declare dllimport void @objc_msgSend(i8*, i8*, ...)