mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Make local constants behave as global: see #974
This commit is contained in:
committed by
Christoffer Lerno
parent
c5404c6573
commit
ee42992c37
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user