mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-28 04:21:17 +00:00
@ is now part of the name of an attribute or a macro. Macros without '@' must be function-like.
This commit is contained in:
@@ -16,12 +16,12 @@ fn int test()
|
||||
{
|
||||
int a = 2;
|
||||
int b = 3;
|
||||
return @foo(&square, 2) + a + b; // 9
|
||||
// return @foo(square, 2) + a + b;
|
||||
return foo(&square, 2) + a + b; // 9
|
||||
// return foo(square, 2) + a + b;
|
||||
// Error the symbol "square" cannot be used as an argument.
|
||||
}
|
||||
|
||||
// #expect: example.ll
|
||||
/* #expect: example.ll
|
||||
|
||||
define i32 @example.square(i32 %0) #0 {
|
||||
entry:
|
||||
|
||||
Reference in New Issue
Block a user