Debian Codegraph @

gcc/testsuite/g++.dg/torture/pr88130.C

raw
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 }