Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/pr88120.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
rev | line source |
---|---|
145 | 1 // PR c++/88120 |
2 // { dg-do compile { target c++11 } } | |
3 | |
4 typedef int a; | |
5 enum b : a; | |
6 class c { | |
7 enum f { d }; | |
8 c(f); | |
9 friend c operator&(c, c); | |
10 typedef void (c::*e)(); | |
11 operator e(); | |
12 }; | |
13 class g { | |
14 template <typename, typename> b h(); | |
15 struct k { | |
16 c i; | |
17 }; | |
18 }; | |
19 template <typename, typename> b g::h() { | |
20 k j; | |
21 &j || j.i &c::d; | |
22 return b(); | |
23 } |