File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,7 @@ func markUsed<T>(t: T) {}
12
12
class MyClass
13
13
{
14
14
var x : Int64
15
- init ( input: Int64 )
16
- {
17
- x = 2 * input
18
- }
19
-
15
+ init ( input: Int64 ) { x = input }
20
16
func do_something( input: Int64 ) -> Int64
21
17
{
22
18
return x * input;
@@ -47,13 +43,6 @@ func main(x: Int64) -> Void
47
43
}
48
44
)
49
45
50
- // ASM-CHECK: .loc [[FILEID]] [[@LINE+1]] 5
51
- call_me (
52
- {
53
- markUsed ( x)
54
- }
55
- )
56
-
57
46
// The swift_releases at the end should not jump to the point where
58
47
// that memory was retained/allocated and also not to line 0.
59
48
// ASM-CHECK-NOT: .loc [[FILEID]] 0 0
@@ -65,6 +54,6 @@ func main(x: Int64) -> Void
65
54
// ASM-CHECK-NOT: retq
66
55
// The end-of-prologue should have a valid location (0 is ok, too).
67
56
// ASM-CHECK: .loc [[FILEID]] 0 {{[0-9]+}} prologue_end
68
- // ASM-CHECK: .loc [[FILEID]] 37 {{[0-9]+}}
57
+ // ASM-CHECK: .loc [[FILEID]] 33 {{[0-9]+}}
69
58
70
59
main ( 30 )
You can’t perform that action at this time.
0 commit comments