Make local constants behave as global: see #974

This commit is contained in:
Christoffer Lerno
2023-09-26 00:03:15 +02:00
committed by Christoffer Lerno
parent c5404c6573
commit ee42992c37
9 changed files with 97 additions and 103 deletions

View File

@@ -46,10 +46,9 @@ macro Callback get_callback2()
/* #expect: abc.ll
store ptr @"bar.get_callback$lambda1", ptr %F, align 8
@main.F = protected unnamed_addr constant ptr @"bar.get_callback$lambda1", align 8
%0 = call i32 @abc.xy(ptr @"bar.get_callback$lambda1")
%1 = call i32 @abc.xy(ptr @"bar.get_callback$lambda1")
declare i32 @"bar.get_callback$lambda1"()
// #expect: foo.ll