Files
c3c/test/test_suite/visibility/private_to_extern.c3t

21 lines
308 B
Plaintext

// #target: macos-x64
module test;
import foo;
fn int main(String[] args) {
foo::one();
return 0;
}
module foo;
macro one() => two();
macro two() => three();
fn void three() @private { four(); }
fn void four() @private {}
/* #expect: foo.ll
define void @foo.three()
define internal void @foo.four()