mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix stringify for compound initializers #2120.
This commit is contained in:
15
test/test_suite/compile_time/stringify_2120.c3t
Normal file
15
test/test_suite/compile_time/stringify_2120.c3t
Normal file
@@ -0,0 +1,15 @@
|
||||
// #target: macos-x64
|
||||
|
||||
module test;
|
||||
macro String @echoo(#arg1)
|
||||
{
|
||||
return $stringify(#arg1);
|
||||
}
|
||||
fn void main()
|
||||
{
|
||||
String s = @echoo((int[]) { 1, 2 });
|
||||
}
|
||||
|
||||
/* #expect: test.ll
|
||||
|
||||
@.str = private unnamed_addr constant [17 x i8] c"(int[]) { 1, 2 }\00", align 1
|
||||
Reference in New Issue
Block a user