From 0118fd7deb1cfc6827f7de016d75c7aae8cc7afd Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Tue, 27 Apr 1999 05:57:31 +0000 Subject: [PATCH] New test - regression for expr.c bug From-SVN: r26674 --- gcc/testsuite/gcc.c-torture/noncompile/990416-1.c | 10 ++++++++++ gcc/testsuite/gcc.c-torture/noncompile/noncompile.exp | 8 ++++++++ 2 files changed, 18 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/noncompile/990416-1.c diff --git a/gcc/testsuite/gcc.c-torture/noncompile/990416-1.c b/gcc/testsuite/gcc.c-torture/noncompile/990416-1.c new file mode 100644 index 000000000000..9d4323ba1cd7 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/noncompile/990416-1.c @@ -0,0 +1,10 @@ +typedef int word_type; + +static void +copy_reg (unsigned int reg, frame_state *udata, frame_state *target_udata) +{ + word_type *preg = get_reg_addr (reg, udata, 0); + word_type *ptreg = get_reg_addr (reg, target_udata, 0); + + memcpy (ptreg, preg, __builtin_dwarf_reg_size (reg)); +} diff --git a/gcc/testsuite/gcc.c-torture/noncompile/noncompile.exp b/gcc/testsuite/gcc.c-torture/noncompile/noncompile.exp index ddebf06ddcf8..c4808b949cb0 100644 --- a/gcc/testsuite/gcc.c-torture/noncompile/noncompile.exp +++ b/gcc/testsuite/gcc.c-torture/noncompile/noncompile.exp @@ -261,6 +261,14 @@ set groups {passed gcc-noncompile} postbase $src_code $run $groups +# Test 990416-1.c +prebase +set src_code 990416-1.c +set compiler_output ".*:4:.*:6:.*:6:.*:6:.*:6:.*:6:.*:7:.*:7:" + +set groups {passed gcc-noncompile} + +postbase $src_code $run $groups # Test init-1.c prebase -- 2.43.5