mirror of
https://github.com/dlang/dmd.git
synced 2025-04-27 05:30:13 +03:00
test: Reduce amount of code generated for test20855 again
This commit is contained in:
parent
f0eedb426f
commit
4da47aee22
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
string exp()
|
string exp()
|
||||||
{
|
{
|
||||||
string s = "a = b + c * d + a;";
|
string s = "a = b + c * d + a;";
|
||||||
foreach (i; 0 .. 10)
|
foreach (i; 0 .. 9)
|
||||||
s = s ~ s;
|
s = s ~ s;
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,6 @@ int main()
|
||||||
{
|
{
|
||||||
int a = test();
|
int a = test();
|
||||||
printf("a = %d\n", a);
|
printf("a = %d\n", a);
|
||||||
assert(test() == 14337);
|
assert(test() == 7169);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue