Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/g++.dg/lto/pr85655_0.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gcc/testsuite/g++.dg/lto/pr85655_0.C Thu Oct 25 07:37:49 2018 +0900 @@ -0,0 +1,42 @@ +// { dg-lto-do link } +// { dg-require-effective-target shared } +// { dg-require-effective-target fpic } +// { dg-lto-options {{-O2 -fPIC -shared -flto}} } + +int a; +void b(...); +void c(int); +enum { d, e, f, g, h, i, j, k }; +class l { +public: + int ac; + bool m; + l(char *); + int n(); +}; +struct o { + int ad; + o(int p = 0) : ad(p) {} +}; +class C : public l { +public: + char q; + C(o) : l(&q) { m |= ac & a ?: 9; } +}; +class r : C { +public: + char s; + r(o p, char) : C(p) { + if (n()) { + b(a, s, ""); + c(5); + } + } +}; +class t : C { +public: + t(int) : C(d) {} +}; +r ag('b', 0), ah(o(), 0), ai(e, 0), aj(f, 0), ak(g, 0), al(h, 0), am(k, 0), + an(i, 0), ao(j, 0); +t ap(0);