OSDN Git Service

* g++.old-deja/g++.other/eh4.C: Fix typo.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / qual1.C
1 // Build don't link:
2 // Origin: Benjamin Pflugmann <philemon@spin.de>
3 // Special g++ Options: -O
4
5 typedef const char *(func_type)();
6
7 class
8 {
9 public:
10   func_type *Function;
11   const func_type* function(void) { return Function; } // ERROR - qualifiers
12 } action;
13
14 void work(const char *source)
15 {
16   work( action.function()() );
17 }