aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@dcc.unicamp.br>1998-09-15 17:05:28 +0000
committerAlexandre Oliva <oliva@gcc.gnu.org>1998-09-15 17:05:28 +0000
commitc9f81ec25b3f1914d082e12d117efda4d76c130b (patch)
treebea4c957171c2fec7f67f6557c16742b2478b236 /gcc
parente1b81ca4fdb63aa7cd94baf57a9799644b46a29e (diff)
downloadgcc-c9f81ec25b3f1914d082e12d117efda4d76c130b.zip
gcc-c9f81ec25b3f1914d082e12d117efda4d76c130b.tar.gz
gcc-c9f81ec25b3f1914d082e12d117efda4d76c130b.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog3
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/static2.C10
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 8ffcdab..9f8429d 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,8 @@
1998-09-15 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * 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 0000000..471448d
--- /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 <koos@polder.ubc.kun.nl>
+
+struct foo {
+ static void (*mystatic) ();
+};
+
+void bar(foo& t) {
+ t.mystatic ();
+}