re PR c++/67184 (Missed optimization with C++11 final specifier)
[official-gcc.git] / gcc / testsuite / g++.dg / other / cv_func2.C
blobffd249fc807e032836e85a58eb301da2400c9bc7
1 typedef int ptr1() const; // no error
3 void foo ()
5   typedef int ptr2() const; // no error
8 class C
10     typedef int ptr3() const;  // error
12     void bar ()
13       {
14         typedef int ptr4() const; // no error
15       }  
18 void wibble () const { } // { dg-error "non-member function" }