Mercurial > projects > ldc
view tests/mini/switch2.d @ 1091:20d96c148b39
Fix for fmul/div/add/sub with no operands. Revert explicit ST0 definition since a typo
had caused the need for that.
author | Kelly Wilson <wilsonk cpsc.ucalgary.ca> |
---|---|
date | Tue, 10 Mar 2009 18:34:19 -0600 |
parents | 1bb99290e03a |
children |
line wrap: on
line source
module switch2; extern(C) int printf(char*, ...); void main() { int i = 2; switch(i) { case 0: assert(0); case 1,2: printf("hello world\n"); break; default: assert(0); } }