mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Set target in test.
This commit is contained in:
8
test/test_suite/compile_time/typeof_untyped.c3
Normal file
8
test/test_suite/compile_time/typeof_untyped.c3
Normal file
@@ -0,0 +1,8 @@
|
||||
macro test(x)
|
||||
{
|
||||
}
|
||||
fn int main()
|
||||
{
|
||||
test($typeof({})?); // #error: You cannot take the typeid of a compile time type
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user