diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0790ff28a2c..c714459be73 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-10-26 Nathan Sidwell + + * gcc.c-torture/compile/20001024-1.c: New test. + 2000-10-25 Mark Mitchell * lib/g++.exp (g++_include_flags): Trust HAVE_LIBSTDCXX_V3 diff --git a/gcc/testsuite/gcc.c-torture/compile/20001024-1.c b/gcc/testsuite/gcc.c-torture/compile/20001024-1.c new file mode 100644 index 00000000000..59208cde107 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20001024-1.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2000 Free Software Foundation */ +/* Contributed by Nathan Sidwell */ + +typedef __SIZE_TYPE__ size_t; + +extern void *memset(void *, int, size_t); + +struct Baz; + +void quux(struct Baz *context) +{ + memset(context, 0, 4); +}