diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2000-06-22 09:42:31 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2000-06-22 09:42:31 +0000 |
commit | 568037521033909f571099f62397926b7424b0ac (patch) | |
tree | b6553c4207af91a3ddb13dc0bd026e97671d9ad1 | |
parent | 990e895418ea311b26f8c807d15f529702b4bd9c (diff) | |
download | gcc-568037521033909f571099f62397926b7424b0ac.zip gcc-568037521033909f571099f62397926b7424b0ac.tar.gz gcc-568037521033909f571099f62397926b7424b0ac.tar.bz2 |
* g++.old-deja/g++.other/init15.C: New test.
From-SVN: r34648
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/init15.C | 22 |
2 files changed, 26 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 012e8ac..7add966 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2000-06-22 Nathan Sidwell <nathan@codesourcery.com> + * g++.old-deja/g++.other/init15.C: New test. + +2000-06-22 Nathan Sidwell <nathan@codesourcery.com> + * g++.old-deja/g++.pt/vaarg2.C: New test. * g++.old-deja/g++.pt/vaarg3.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 0000000..b51285c --- /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 <nathan@codesourcery.com> + +// 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} + ; +} |