Debian Codegraph @

gcc/testsuite/g++.target/powerpc/pr84279.C

raw
1 /* { dg-do compile } */
2 /* { dg-skip-if "" { *-*-darwin* } } */
3 /* { dg-options "-O3 -mdejagnu-cpu=power8 -mvsx -g -fPIC -fvisibility=hidden -fstack-protector-strong" } */
4 /* { dg-require-effective-target powerpc_vsx } */
5 /* { dg-require-effective-target fpic } */
6
7 template <typename, typename T> struct E { T e; };
8 struct J {
9 unsigned k, l;
10 J (unsigned x, unsigned y) : k(x), l(y) {}
11 };
12 typedef struct A {
13 J n, p;
14 A ();
15 A (J x, J y) : n(x), p(y) {}
16 } *S;
17 S t;
18 struct B {
19 struct C {
20 S q, r;
21 int u, v;
22 bool m1 (S, A &);
23 J m2 () const;
24 J m3 () const;
25 A m4 () const;
26 };
27 typedef E<unsigned, S> D;
28 void m5 (D *);
29 void m6 (unsigned, A);
30 };
31 bool B::C::m1 (S, A &x) { bool o; x = m4 (); return o; }
32 J B::C::m2 () const { unsigned g (u == 0); unsigned h (v); return J (g, h); }
33 J B::C::m3 () const { unsigned g (q != t); unsigned h (r != t); return J (g, h); }
34 A B::C::m4 () const { return A (m2 (), m3 ()); }
35 void B::m5 (D *c) { unsigned x; C ar; A am; if (ar.m1 (c->e, am)) m6 (x, am); }