| 1 |
/* PR ipa/61800 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-require-visibility "" } */ |
| 4 |
/* { dg-options "-O2 -Wno-return-type" } */ |
| 5 |
|
| 6 |
#pragma GCC visibility push(hidden) |
| 7 |
class A |
| 8 |
{ |
| 9 |
public: |
| 10 |
unsigned long m_fn1 () const; |
| 11 |
}; |
| 12 |
class B; |
| 13 |
class C |
| 14 |
{ |
| 15 |
public: |
| 16 |
; |
| 17 |
virtual bool m_fn2 (void) = 0; |
| 18 |
}; |
| 19 |
class D |
| 20 |
{ |
| 21 |
virtual bool m_fn3 (const int &p1, B *p2) = 0; |
| 22 |
}; |
| 23 |
class F : public D |
| 24 |
{ |
| 25 |
bool m_fn3 (const int &p1, B *p2); |
| 26 |
A mPredicates; |
| 27 |
}; |
| 28 |
class B |
| 29 |
{ |
| 30 |
}; |
| 31 |
class G : public B |
| 32 |
{ |
| 33 |
virtual unsigned int m_fn4 () = 0; |
| 34 |
}; |
| 35 |
class H : public G |
| 36 |
{ |
| 37 |
public: |
| 38 |
int txNodeSetContext_aContextNodeSet; |
| 39 |
H (B *p1) {} |
| 40 |
int |
| 41 |
m_fn5 () |
| 42 |
{ |
| 43 |
return mPosition < m_fn4 (); |
| 44 |
} |
| 45 |
unsigned int m_fn4 (); |
| 46 |
unsigned int mPosition; |
| 47 |
}; |
| 48 |
|
| 49 |
unsigned int a; |
| 50 |
C *b; |
| 51 |
bool |
| 52 |
F::m_fn3 (const int &p1, B *p2) |
| 53 |
{ |
| 54 |
if (!b->m_fn2 ()) |
| 55 |
return false; |
| 56 |
unsigned int c = mPredicates.m_fn1 (); |
| 57 |
for (1; 1 < c; ++a) |
| 58 |
{ |
| 59 |
H d (p2); |
| 60 |
while (d.m_fn5 ()) |
| 61 |
{ |
| 62 |
do |
| 63 |
{ |
| 64 |
} |
| 65 |
while (0); |
| 66 |
} |
| 67 |
} |
| 68 |
} |