Skip to content

Commit e522333

Browse files
committed
Prevent optimization in test
1 parent c226bc3 commit e522333

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Serialization/debug-scope.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import def_debug
1010

1111
// CHECK: sil_scope [[SCOPE_ONE:[0-9]+]] { loc "{{.*}}def_debug.swift":2:13 parent @$s9def_debug3foo1xs6UInt64VAE_tF : $@convention(thin) (UInt64) -> UInt64 inlined_at [[INLINE_SITE_ONE:[0-9]+]] }
1212
// CHECK: sil_scope [[SCOPE_TWO:[0-9]+]] { loc "{{.*}}def_debug.swift":3:5 parent [[SCOPE_ONE]] inlined_at [[INLINE_SITE_ONE]] }
13-
let simpleFunc = foo(x: 1)
13+
let simpleFunc = foo(x: UInt64.random(in: 1...200))
1414

1515
// _transparent with Onone
1616
// NOOPT: sil_scope [[SCOPE_GENERIC_ONE:[0-9]+]] { loc "{{.*}}def_debug.swift":10:13 parent @$s9def_debug25specializedGenericInlinedSiyF : $@convention(thin) () -> Int }

0 commit comments

Comments
 (0)