New tests
From-SVN: r32746
This commit is contained in:
parent
28ff5bfb6e
commit
adc66edadb
@ -1,3 +1,8 @@
|
||||
2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
|
||||
|
||||
* compile/20000326-1.c: New test.
|
||||
* compile/20000326-2.c: New test.
|
||||
|
||||
2000-03-24 Geoff Keating <geoffk@cygnus.com>
|
||||
|
||||
* execute/va-arg-14.c: New test for va_start where the first
|
||||
|
23
gcc/testsuite/gcc.c-torture/compile/20000326-1.c
Normal file
23
gcc/testsuite/gcc.c-torture/compile/20000326-1.c
Normal file
@ -0,0 +1,23 @@
|
||||
long sys_reboot(int magic1, int magic2, int cmd, void * arg)
|
||||
{
|
||||
switch (cmd) {
|
||||
case 0x89ABCDEF:
|
||||
break;
|
||||
|
||||
case 0x00000000:
|
||||
break;
|
||||
|
||||
case 0xCDEF0123:
|
||||
break;
|
||||
|
||||
case 0x4321FEDC:
|
||||
break;
|
||||
|
||||
case 0xA1B2C3D4:
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
};
|
||||
return 0;
|
||||
}
|
13
gcc/testsuite/gcc.c-torture/compile/20000326-2.c
Normal file
13
gcc/testsuite/gcc.c-torture/compile/20000326-2.c
Normal file
@ -0,0 +1,13 @@
|
||||
#ifndef NO_LABEL_VALUES
|
||||
extern int printk(const char *fmt, ...);
|
||||
|
||||
void foo (int x, int y)
|
||||
{
|
||||
__label__ here;
|
||||
here:
|
||||
printk ("", &&here);
|
||||
}
|
||||
|
||||
#else
|
||||
int x;
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user