Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/g++.dg/pr93974.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gcc/testsuite/g++.dg/pr93974.C Mon May 25 07:50:57 2020 +0900 @@ -0,0 +1,27 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ +/* { dg-options "-mdejagnu-cpu=power8 -O3 -fstack-protector-strong" } */ + +class a { + double b[2]; +public: + a(); +}; + +class c { +public: + typedef a d; + d m_fn1() { + a e; + return e; + } +}; +template <typename f> void operator+(f, typename f::d); +void g() { + c connector; + for (;;) { + c cut; + a h = cut.m_fn1(); + connector + h; + } +}