Mercurial > projects > ldc
comparison dmd/mars.c @ 11:d3ee9efe20e2 trunk
[svn r15] * Fixed a bunch problems with virtual calls. Seems I did some rather poor testing.
* Now 50/51 tests compile.
* Added a simple runalltests.d scripts that should be run with 'gdmd -run runalltests.d' - LLVMDC will not compile it yet.
author | lindquist |
---|---|
date | Tue, 02 Oct 2007 05:10:18 +0200 |
parents | dafae18f9c08 |
children | 788401029ecf |
comparison
equal
deleted
inserted
replaced
10:c0f2c47e5034 | 11:d3ee9efe20e2 |
---|---|
347 global.params.verbose = 1; | 347 global.params.verbose = 1; |
348 else if (strcmp(p + 1, "v1") == 0) | 348 else if (strcmp(p + 1, "v1") == 0) |
349 global.params.Dversion = 1; | 349 global.params.Dversion = 1; |
350 else if (strcmp(p + 1, "w") == 0) | 350 else if (strcmp(p + 1, "w") == 0) |
351 global.params.warnings = 1; | 351 global.params.warnings = 1; |
352 else if (strcmp(p + 1, "O") == 0) | 352 else if (p[1] == 'O') |
353 { | 353 { |
354 global.params.optimize = 1; | 354 global.params.optimize = 1; |
355 if (p[2] != 0) { | 355 if (p[2] != 0) { |
356 int optlevel = atoi(p+2); | 356 int optlevel = atoi(p+2); |
357 if (optlevel < 0 || optlevel > 5) { | 357 if (optlevel < 0 || optlevel > 5) { |