Fix stringify for compound initializers #2120.

This commit is contained in:
Christoffer Lerno
2025-05-04 15:31:55 +02:00
parent d313afa487
commit 900365c25e
3 changed files with 22 additions and 6 deletions

View 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