Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/other/cv_func2.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 typedef int ptr1() const; // no error |
2 | |
3 void foo () | |
4 { | |
5 typedef int ptr2() const; // no error | |
6 } | |
7 | |
8 class C | |
9 { | |
10 typedef int ptr3() const; // error | |
11 | |
12 void bar () | |
13 { | |
14 typedef int ptr4() const; // no error | |
15 } | |
16 }; | |
17 | |
18 void wibble () const { } // { dg-error "non-member function" } |