New test.
From-SVN: r37611
This commit is contained in:
parent
325dd7fd88
commit
a5ccb99da9
@ -1,3 +1,7 @@
|
||||
2000-11-21 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* gcc.c-torture/compile/20001121-1.c: New test.
|
||||
|
||||
2000-11-20 Neil Booth <neilb@earthling.net>
|
||||
|
||||
* gcc.dg/cpp/integrated1.c: New test.
|
||||
|
21
gcc/testsuite/gcc.c-torture/compile/20001121-1.c
Normal file
21
gcc/testsuite/gcc.c-torture/compile/20001121-1.c
Normal file
@ -0,0 +1,21 @@
|
||||
extern int bar(int);
|
||||
|
||||
int foo(int x)
|
||||
{
|
||||
return 1 + bar(
|
||||
({
|
||||
int y;
|
||||
switch (x)
|
||||
{
|
||||
case 0: y = 1; break;
|
||||
case 1: y = 2; break;
|
||||
case 2: y = 3; break;
|
||||
case 3: y = 4; break;
|
||||
case 4: y = 5; break;
|
||||
case 5: y = 6; break;
|
||||
default: y = 7; break;
|
||||
}
|
||||
y;
|
||||
})
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue
Block a user