Add test.
This commit is contained in:
parent
74908098f4
commit
302dc1cb8a
20
sourcepawn/compiler/tests/ok-trailing-comma-in-literal.sp
Normal file
20
sourcepawn/compiler/tests/ok-trailing-comma-in-literal.sp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
|
||||||
|
new String:oldArray[][] =
|
||||||
|
{
|
||||||
|
"string",
|
||||||
|
"string2",
|
||||||
|
};
|
||||||
|
|
||||||
|
char newArray[][] =
|
||||||
|
{
|
||||||
|
"another string",
|
||||||
|
"more strings",
|
||||||
|
};
|
||||||
|
|
||||||
|
native Print( const String:string[] );
|
||||||
|
|
||||||
|
public OnPluginStart()
|
||||||
|
{
|
||||||
|
Print( oldArray[ 0 ] );
|
||||||
|
Print( newArray[ 0 ] );
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user