Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/torture/pr88130.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 /* { dg-do compile } */ |
2 /* { dg-options "-flto" } */ | |
3 /* { dg-require-effective-target lto } */ | |
4 class a { | |
5 public: | |
6 static const long b = 1; | |
7 }; | |
8 struct c { | |
9 enum d { e }; | |
10 }; | |
11 class C; | |
12 class f { | |
13 public: | |
14 f(c::d); | |
15 template <typename g> C operator<=(g); | |
16 }; | |
17 class C { | |
18 public: | |
19 template <typename h> void operator!=(h &); | |
20 }; | |
21 void i() { | |
22 f j(c::e); | |
23 try { | |
24 j <= 0 != a::b; | |
25 } catch (...) { | |
26 } | |
27 } |