ios + ir cleanup
- ios: --target ios/ios-sim shorthands, iOS SDK auto-discovery,
#framework directive + BuildOptions.add_framework hook,
.app bundle + Info.plist + codesign (ad-hoc and real),
--codesign-identity/--provisioning-profile/--entitlements flags,
modules/std/{objc,uikit}.sx, dynamic class registration,
typed objc_msgSend cast pattern, UIApplicationMain handoff,
UIWindow scene attach. Runs on iPhone hardware.
- ir: silent .s64 defaults → loud diagnostics,
resolveReturnType infers from body, sub-byte int sizes match LLVM,
tuple type interning includes names, compile errors exit 1
- issue-NNNN convention: resolved bugs rename to focused features
- 50 regression tests passing
This commit is contained in:
4
tests/expected/08-types.txt
Normal file
4
tests/expected/08-types.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
a 0 : Foo{a: 0, b: 42, c: 124, d: 17}
|
||||
a 1 : Foo{a: 1, b: 42, c: 8, d: 17}
|
||||
b: Foo{a: 1, b: 1, c: 101, d: 1}
|
||||
Pack{a: 1, b: 0, c: 3, d: 5, f: 9, v: 100, x: 3.500000}
|
||||
@@ -1,27 +0,0 @@
|
||||
P1.1: 3
|
||||
P1.2: 30
|
||||
P2.1: 42
|
||||
P2.2: 150
|
||||
P2.3: 5 10
|
||||
P2.6: 5 10
|
||||
P2.7: 15
|
||||
P3.1: 5
|
||||
P3.2: 12
|
||||
P3.3: 102
|
||||
hi hi
|
||||
P4.1: 2
|
||||
yo yo
|
||||
P4.2: 2
|
||||
P4.3: 6 2
|
||||
P5.1: true false
|
||||
P5.2: 10 20
|
||||
P5.3: true false
|
||||
P5.5: true false
|
||||
P6.1: true false
|
||||
P6.2: true false
|
||||
P6.3: true false
|
||||
P6.4: 40
|
||||
P6.5: 20
|
||||
P7.1: 30
|
||||
P7.2: 10 300
|
||||
=== DONE ===
|
||||
1
tests/expected/55-err-field-not-found.exit
Normal file
1
tests/expected/55-err-field-not-found.exit
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
1
tests/expected/55-err-field-not-found.txt
Normal file
1
tests/expected/55-err-field-not-found.txt
Normal file
@@ -0,0 +1 @@
|
||||
/Users/agra/projects/sx/examples/55-err-field-not-found.sx:8:15: error: field 'bogus' not found on type 'Vec'
|
||||
1
tests/expected/56-err-tuple-oob.exit
Normal file
1
tests/expected/56-err-tuple-oob.exit
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
1
tests/expected/56-err-tuple-oob.txt
Normal file
1
tests/expected/56-err-tuple-oob.txt
Normal file
@@ -0,0 +1 @@
|
||||
/Users/agra/projects/sx/examples/56-err-tuple-oob.sx:6:15: error: field '42' not found on type 'tuple'
|
||||
1
tests/expected/57-err-dot-shorthand.exit
Normal file
1
tests/expected/57-err-dot-shorthand.exit
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
1
tests/expected/57-err-dot-shorthand.txt
Normal file
1
tests/expected/57-err-dot-shorthand.txt
Normal file
@@ -0,0 +1 @@
|
||||
/Users/agra/projects/sx/examples/57-err-dot-shorthand.sx:5:10: error: cannot infer enum type for '.Foo' — use an explicit type or assign to a typed variable
|
||||
1
tests/expected/58-infer-return-type.exit
Normal file
1
tests/expected/58-infer-return-type.exit
Normal file
@@ -0,0 +1 @@
|
||||
178
|
||||
1
tests/expected/58-infer-return-type.txt
Normal file
1
tests/expected/58-infer-return-type.txt
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
1
tests/expected/59-err-bad-variant.exit
Normal file
1
tests/expected/59-err-bad-variant.exit
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
1
tests/expected/59-err-bad-variant.txt
Normal file
1
tests/expected/59-err-bad-variant.txt
Normal file
@@ -0,0 +1 @@
|
||||
/Users/agra/projects/sx/examples/59-err-bad-variant.sx:18:14: error: no variant 'Bogus' on type 'Shape'
|
||||
1
tests/expected/60-frameworks.exit
Normal file
1
tests/expected/60-frameworks.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
tests/expected/60-frameworks.txt
Normal file
1
tests/expected/60-frameworks.txt
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
1
tests/expected/61-objc-roundtrip.exit
Normal file
1
tests/expected/61-objc-roundtrip.exit
Normal file
@@ -0,0 +1 @@
|
||||
209
|
||||
1
tests/expected/61-objc-roundtrip.txt
Normal file
1
tests/expected/61-objc-roundtrip.txt
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
1
tests/expected/62-objc-class.exit
Normal file
1
tests/expected/62-objc-class.exit
Normal file
@@ -0,0 +1 @@
|
||||
42
|
||||
1
tests/expected/62-objc-class.txt
Normal file
1
tests/expected/62-objc-class.txt
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
1
tests/expected/65-add-framework.exit
Normal file
1
tests/expected/65-add-framework.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
tests/expected/65-add-framework.txt
Normal file
1
tests/expected/65-add-framework.txt
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
Reference in New Issue
Block a user