Skip to content

Commit

Permalink
testgc2: Minor cleanup.
Browse files Browse the repository at this point in the history
Tabs -> spaces, removed empty version(none) block.
  • Loading branch information
dnadlinger committed Nov 18, 2012
1 parent 2b97b0e commit 4a9232e
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions test/runnable/testgc2.d
Expand Up @@ -9,16 +9,11 @@ import core.exception : OutOfMemoryError;

void test1()
{
version (none)
{
}
else
{
printf("This should not take a while\n");
try
{
long[] l = new long[ptrdiff_t.max];
assert(0);
long[] l = new long[ptrdiff_t.max];
assert(0);
}
catch (OutOfMemoryError o)
{
Expand All @@ -27,14 +22,13 @@ void test1()
printf("This may take a while\n");
try
{
byte[] b = new byte[size_t.max / 3];
version (Windows)
assert(0);
byte[] b = new byte[size_t.max / 3];
version (Windows)
assert(0);
}
catch (OutOfMemoryError o)
{
}
}
}

/*******************************************/
Expand Down

0 comments on commit 4a9232e

Please sign in to comment.