Mercurial > hg > CbC > CbC_llvm
comparison clang/test/Driver/darwin-iphone-defaults.m @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 1d019706d866 |
children |
comparison
equal
deleted
inserted
replaced
232:70dce7da266c | 236:c4bab56944e8 |
---|---|
1 // RUN: %clang -target i386-apple-darwin9 -miphoneos-version-min=3.0 -arch armv7 -stdlib=platform -flto -S -o - %s | FileCheck %s | 1 // RUN: %clang -target i386-apple-darwin -miphoneos-version-min=5.0 -arch armv7 -stdlib=platform -flto -S -o - %s | FileCheck %s |
2 | 2 |
3 // CHECK: @f0() [[F0:#[0-9]+]] | 3 // CHECK: @f0() [[F0:#[0-9]+]] |
4 // CHECK: @__f0_block_invoke | 4 // CHECK: @__f0_block_invoke |
5 // CHECK: void @f1 | 5 // CHECK: void @f1 |
6 // CHECK-NOT: msgSend_fixup_alloc | 6 // CHECK-NOT: msgSend_fixup_alloc |
7 // CHECK: OBJC_SELECTOR_REFERENCES | 7 // CHECK: OBJC_SELECTOR_REFERENCES |
8 | 8 |
9 int f0() { | 9 int f0(void) { |
10 return ^(){ return 0; }(); | 10 return ^(void){ return 0; }(); |
11 } | 11 } |
12 | 12 |
13 @interface I0 | 13 @interface I0 |
14 @property (assign) int p0; | 14 @property (assign) int p0; |
15 @end | 15 @end |
20 | 20 |
21 @interface I1 | 21 @interface I1 |
22 +(id) alloc; | 22 +(id) alloc; |
23 @end | 23 @end |
24 | 24 |
25 void f1() { | 25 void f1(void) { |
26 [I1 alloc]; | 26 [I1 alloc]; |
27 } | 27 } |
28 | 28 |
29 // CHECK: attributes [[F0]] = { noinline optnone ssp{{.*}} } | 29 // CHECK: attributes [[F0]] = { noinline optnone ssp{{.*}} } |