mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-08 00:57:27 +08:00
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
This commit is contained in:
parent
e1b81ca4fd
commit
c9f81ec25b
@ -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
|
||||
|
||||
|
10
gcc/testsuite/g++.old-deja/g++.other/static2.C
Normal file
10
gcc/testsuite/g++.old-deja/g++.other/static2.C
Normal file
@ -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 ();
|
||||
}
|
Loading…
Reference in New Issue
Block a user