• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin9 %s -emit-llvm -o - | FileCheck %s -check-prefix=X86
2// RUN: %clang_cc1 -fblocks -triple arm-apple-darwin %s -emit-llvm -o - | FileCheck %s -check-prefix=ARM
3// RUN: %clang_cc1 -fblocks -triple arm64-apple-darwin %s -emit-llvm -o - | FileCheck %s -check-prefix=ARM64
4
5// <rdar://problem/9757015>: Don't use 'stret' variants on ARM64.
6
7// X86: @main
8// X86: @objc_msgSend_stret
9
10// ARM: @main
11// ARM: @objc_msgSend_stret
12
13// ARM64:     @main
14// ARM64-NOT: @objc_msgSend_stret
15
16struct st { int i[1000]; };
17@interface Test
18+(struct st)method;
19@end
20int main() {
21  [Test method];
22}
23