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
2 changed files with 13 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue