Files
c3c/test/test_suite/compile_time/ct_func.c3t

30 lines
393 B
Plaintext

// #target: macos-x64
module test;
import std::io;
fn int test()
{
io::printn($$FUNC);
return 1;
}
struct Foo
{ int x; }
fn void Foo.tester(Foo* f)
{
io::printn($$FUNC);
}
fn void main()
{
Foo f;
f.tester();
test();
}
/* #expect: test.ll
@.str = private unnamed_addr constant [5 x i8] c"test\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"Foo.tester\00", align 1