mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
30 lines
393 B
Plaintext
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
|