Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.other / qual1.C
blobb6eba42ddcfa46d083a8dad5c0e9bc4a22a63171
1 // { dg-do assemble  }
2 // { dg-options "-O" }
3 // Origin: Benjamin Pflugmann <philemon@spin.de>
5 // DR 295 allows qualification via typedef
7 typedef const char *(func_type)();
9 class C
11 public:
12   func_type *Function;
13   // The following is DR 295 dependent
14   const func_type* function(void) { return Function; }
15   volatile func_type* functionv(void);
16 } action;
18 void work(const char *source)
20   work( action.function()() );