From: Nathan Sidwell Date: Thu, 22 Jun 2000 09:42:31 +0000 (+0000) Subject: * g++.old-deja/g++.other/init15.C: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=568037521033909f571099f62397926b7424b0ac;p=gcc.git * g++.old-deja/g++.other/init15.C: New test. From-SVN: r34648 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 012e8ac5a97..7add966a12a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-06-22 Nathan Sidwell + + * g++.old-deja/g++.other/init15.C: New test. + 2000-06-22 Nathan Sidwell * g++.old-deja/g++.pt/vaarg2.C: New test. diff --git a/gcc/testsuite/g++.old-deja/g++.other/init15.C b/gcc/testsuite/g++.old-deja/g++.other/init15.C new file mode 100644 index 00000000000..b51285c8cf8 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/init15.C @@ -0,0 +1,22 @@ +// Build don't link: +// Copyright (C) 2000 Free Software Foundation +// Contributed by Nathan Sidwell 21 June 2000 + +// Origin GNATS bug report 136 from +// language specific constants caused the backend's constant caching machinery +// to fall over. + +struct A { + char *name; + int reserved; + int a; + int b; + void (A::*func)(); + void Fn (); +}; + +void Interpret() { + struct A cmd_list = + {"a",0,0, 0,&A::Fn} + ; +}