[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git] / gcc / testsuite / g++.dg / init / const6.C
blobe626bfeacebf33acc0b908da04c124377d1ae391
1 // PR c++/36688
2 // { dg-do run }
3 // { dg-options "-O2" }
5 struct S
7   long long a;
8   long long b;
9   long long c;
12 struct T
14   S g;
15   long long h[12];
18 static const S s = { 1, 2, 3 };
19 static const T t = { s, 0 };
21 int
22 main ()
24   T x = t;
25   if (__builtin_memcmp (&x, &t, sizeof (T)))
26     __builtin_abort ();