[svn r82] Fixed: Fall-through switch cases were broken.

This commit is contained in:
Tomas Lindquist Olsen
2007-10-31 20:50:21 +01:00
parent 0979d55d26
commit d8f021d63f
7 changed files with 75 additions and 29 deletions

10
test/bug42.d Normal file
View File

@@ -0,0 +1,10 @@
module bug42;
void main() {
int i = 2;
switch (i) {
case 0:
case 1:
default:
}
}

16
test/bug43.d Normal file
View File

@@ -0,0 +1,16 @@
module bug43;
struct S
{
ubyte[3] vals;
}
void func(ubyte[3] v)
{
}
void main()
{
S s;
func(s.vals);
}

22
test/union6.d Normal file
View File

@@ -0,0 +1,22 @@
module union6;
pragma(LLVM_internal, "notypeinfo") {
struct S
{
byte a;
byte b;
}
union U
{
byte a;
byte b;
S c;
}
}
void main()
{
U u;
auto a = u.c.b;
//auto c = u.s.l;
}