Open zqb-all opened 1 year ago
char a1[10] = {"hello"}; //ng1 int main() { char a2[10] = {"hello"}; char a3[10] = "hello"; static char a4[10] = {"hello"}; //ng2 static char a5[10] = "hello"; static char a6[10] = {}; static char a7[10] = {'h'}; static char a8[10] = {'h','e','l','l','o'}; }
for a1[10], xcalcc log:
2023-08-24 14:04:57,428 - xcalcc - ERROR - !!! Log: (null) :Translating main(0) !!! DevWarn: main :Stmt2llvm: ingore PRAGMA stmt now ### Assertion failure ../../../../osprey/ir_tools/whirl2llvm.cxx:1265: ### Wty2llvmty: constant string should be array ### For array.O in main (xcalcc:580)
for a4[10], xcalcc log:
2023-08-24 14:05:27,382 - xcalcc - ERROR - !!! Log: (null) :Translating main(0) ### Assertion failure ../../../../osprey/ir_tools/whirl2llvm.cxx:1265: ### Wty2llvmty: constant string should be array ### For array.O in main (xcalcc:580)
for a1[10], xcalcc log:
for a4[10], xcalcc log: