From c9f81ec25b3f1914d082e12d117efda4d76c130b Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Tue, 15 Sep 1998 17:05:28 +0000 Subject: [PATCH] static2.C: invocation of static data member of type pointer-to-function denoted as... * g++.old-deja/g++.other/static2.C: invocation of static data member of type pointer-to-function denoted as non-static member From-SVN: r22434 --- gcc/testsuite/ChangeLog | 3 +++ gcc/testsuite/g++.old-deja/g++.other/static2.C | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.other/static2.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8ffcdab2411..9f8429d874e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 1998-09-15 Alexandre Oliva + * g++.old-deja/g++.other/static2.C: invocation of static data + member of type pointer-to-function denoted as non-static member + * g++.old-deja/g++.other/typedef5.C: add some more tests involving checks involving function types and aliases diff --git a/gcc/testsuite/g++.old-deja/g++.other/static2.C b/gcc/testsuite/g++.old-deja/g++.other/static2.C new file mode 100644 index 00000000000..471448d3300 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/static2.C @@ -0,0 +1,10 @@ +// Build don't link: +// Based on a test case by Koos Vriezen + +struct foo { + static void (*mystatic) (); +}; + +void bar(foo& t) { + t.mystatic (); +}