diff --git a/gcc/testsuite/gcc.c-torture/ChangeLog b/gcc/testsuite/gcc.c-torture/ChangeLog index 3ac1a5a59d6..0d36e9c9309 100644 --- a/gcc/testsuite/gcc.c-torture/ChangeLog +++ b/gcc/testsuite/gcc.c-torture/ChangeLog @@ -1,3 +1,8 @@ +2000-03-26 Bernd Schmidt + + * compile/20000326-1.c: New test. + * compile/20000326-2.c: New test. + 2000-03-24 Geoff Keating * execute/va-arg-14.c: New test for va_start where the first diff --git a/gcc/testsuite/gcc.c-torture/compile/20000326-1.c b/gcc/testsuite/gcc.c-torture/compile/20000326-1.c new file mode 100644 index 00000000000..71ed149c8ed --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20000326-1.c @@ -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; +} diff --git a/gcc/testsuite/gcc.c-torture/compile/20000326-2.c b/gcc/testsuite/gcc.c-torture/compile/20000326-2.c new file mode 100644 index 00000000000..055260f6e64 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20000326-2.c @@ -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