OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/36688
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
const6.C
1
// PR c++/36688
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
5
struct S
6
{
7
long long a;
8
long long b;
9
long long c;
10
};
11
12
struct T
13
{
14
S g;
15
long long h[12];
16
};
17
18
static const S s = { 1, 2, 3 };
19
static const T t = { s, 0 };
20
21
int
22
main ()
23
{
24
T x = t;
25
if (__builtin_memcmp (&x, &t, sizeof (T)))
26
__builtin_abort ();
27
}