annotate nocompile/bug_20041203_A.d @ 1630:d0efa3ae5522 default tip

run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author David Nadlinger <code@klickverbot.at>
date Sat, 23 Apr 2011 22:57:32 +0200
parents d3a3e0c251d8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
174
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
1 // $HeadURL$
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
2 // $Date$
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
3 // $Author$
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
4
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
5 // @author@ Geoff Hickey <Geoff_member@pathlink.com>
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
6 // @date@ 2004-12-03
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
7 // @uri@ news:coodc7$27qp$1@digitaldaemon.com
1384
d3a3e0c251d8 nntp: -> http:
thomask
parents: 1383
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2431
174
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
9
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
10 module dstress.nocompile.bug_20041203_A;
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
11
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
12 struct MyStruct{
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
13 uint i;
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
14 }
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
15
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
16 int main(){
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
17 MyStruct s;
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
18 s.i = 1;
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
19
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
20 switch( s.i ){
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
21 case undefined_identifier:
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
22 break;
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
23 }
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
24
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
25 return 0;
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
26 }
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
27
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
28
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
29
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
30
b824116874df undefined symbol in uint switch crashes the compiler
thomask
parents:
diff changeset
31