@ is now part of the name of an attribute or a macro. Macros without '@' must be function-like.

This commit is contained in:
Christoffer Lerno
2022-05-08 15:22:38 +02:00
parent 29a9769651
commit 9691d50a6f
80 changed files with 414 additions and 513 deletions

View File

@@ -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: