From bc6bd744c5c1afa8f2afce8b56c3ae170ab3b30c Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Sun, 26 Jul 1998 00:05:36 +0000 Subject: [PATCH] * gcc.c-torture/compile/980726-1.c: New test. From-SVN: r21388 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.c-torture/compile/980726-1.c | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/compile/980726-1.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 313b11e10f23..b69eebd4653d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +Sun Jul 26 01:05:02 1998 Jeffrey A Law (law@cygnus.com) + + * gcc.c-torture/compile/980726-1.c: New test. + 1998-07-25 Dave Love * g77.f-torture/execute/io0.f: New test. diff --git a/gcc/testsuite/gcc.c-torture/compile/980726-1.c b/gcc/testsuite/gcc.c-torture/compile/980726-1.c new file mode 100644 index 000000000000..3d4daa203ded --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/980726-1.c @@ -0,0 +1,10 @@ +static __inline__ unsigned char BCD(unsigned char binval) +{ + if (binval > 99) return 0x99; + return (((binval/10) << 4) | (binval%10)); +} + +void int1a(unsigned char i) +{ + (*((unsigned char *)1)) = BCD(i); +} -- 2.43.5