c++: constantness of call to function pointer [PR111703]
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr88130.C
blob911cf6c84c626540468f44880317e4233edc3025
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 };
11 class C;
12 class f {
13 public:
14   f(c::d);
15   template <typename g> C operator<=(g);
17 class C {
18 public:
19   template <typename h> void operator!=(h &);
21 void i() {
22   f j(c::e);
23   try {
24     j <= 0 != a::b;
25   } catch (...) {
26   }