annotate run/goto_08.d @ 1599:d37b19f7e8bb

Move run/c/case_01 to nocompile.
author Christian Kamm <kamm incasoftware de>
date Tue, 09 Sep 2008 17:28:31 +0200
parents c18d6e8a712e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
186
c18d6e8a712e extended goto tests
thomask
parents:
diff changeset
1 // $HeadURL$
c18d6e8a712e extended goto tests
thomask
parents:
diff changeset
2 // $Date$
c18d6e8a712e extended goto tests
thomask
parents:
diff changeset
3 // $Author$
c18d6e8a712e extended goto tests
thomask
parents:
diff changeset
4
c18d6e8a712e extended goto tests
thomask
parents:
diff changeset
5 module dstress.run.goto_08;
c18d6e8a712e extended goto tests
thomask
parents:
diff changeset
6
c18d6e8a712e extended goto tests
thomask
parents:
diff changeset
7 int main(char[][] arg){
c18d6e8a712e extended goto tests
thomask
parents:
diff changeset
8
c18d6e8a712e extended goto tests
thomask
parents:
diff changeset
9 assert(arg.length==1);
c18d6e8a712e extended goto tests
thomask
parents:
diff changeset
10
c18d6e8a712e extended goto tests
thomask
parents:
diff changeset
11 if(arg.length!=1){
c18d6e8a712e extended goto tests
thomask
parents:
diff changeset
12 label:
c18d6e8a712e extended goto tests
thomask
parents:
diff changeset
13 return 0;
c18d6e8a712e extended goto tests
thomask
parents:
diff changeset
14 }else{
c18d6e8a712e extended goto tests
thomask
parents:
diff changeset
15 goto label;
c18d6e8a712e extended goto tests
thomask
parents:
diff changeset
16 }
c18d6e8a712e extended goto tests
thomask
parents:
diff changeset
17 assert(0);
c18d6e8a712e extended goto tests
thomask
parents:
diff changeset
18 }