• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: %clang_cc1 -fblocks -triple arm64-apple-darwin %s -emit-llvm -o - | FileCheck %s -check-prefix=CHECK-ARM64
2// rdar://12416433
3
4struct stret { int x[100]; };
5struct stret zero;
6struct stret one = {{1}};
7
8@interface Test  @end
9
10@implementation Test
11+(struct stret) method { return one; }
12@end
13
14int main(int argc, const char **argv)
15{
16    struct stret st2 = one;
17    if (argc) st2 = [(id)(argc&~255) method];
18}
19
20// CHECK-ARM64: call void @llvm.memset.p0i8.i64(i8* [[T0:%.*]], i8 0, i64 400, i32 4, i1 false)
21