summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/objc_copyStruct.m
blob: 7fa0ad54f3aec6319292b0f4bb822c0bd82022fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang -target x86_64-unknown-windows-msvc -fobjc-runtime=ios -Wno-objc-root-class -S -o - -emit-llvm %s | FileCheck %s
// RUN: %clang -target x86_64-apple-ios -fobjc-runtime=ios -Wno-objc-root-class -S -o - -emit-llvm %s | FileCheck %s

struct S {
  float f, g;
};

@interface I
@property struct S s;
@end

@implementation I
@end

// CHECK: declare {{.*}}void @objc_copyStruct(i8*, i8*, i64, i1, i1)