mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
17 lines
328 B
Plaintext
17 lines
328 B
Plaintext
module test;
|
|
import std;
|
|
|
|
extern const void* FOO @cname("malloc");
|
|
|
|
macro foo($x) {}
|
|
|
|
fn void test()
|
|
{
|
|
var $x = FOO; // #error: $x must be assigned a compile-time constant. 'extern' constants are resolved
|
|
}
|
|
|
|
fn void test2()
|
|
{
|
|
foo(FOO); // #error: $x must be assigned a compile-time constant. 'extern' constants are resolved
|
|
}
|