repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* doc/extend.texi (Loop-Specific Pragmas): Document pragma GCC unroll.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
flexary1.C
blob
4033e339da011f150fad0a2c82f61b3886380462
1
// { dg-do compile }
2
3
// Copyright (C) 2003 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 22 Jul 2003 <nathan@codesourcery.com>
5
6
// PR c++ 11614
7
8
typedef int ary_t[];
9
10
struct test
11
{
12
ary_t *b;
13
int (*a)[]; // this is not a flexible array member
14
};
15
16
void test(void)
17
{
18
struct test s;
19
int (*a)[] = 0;
20
ary_t *b = 0;
21
22
a = s.a;
23
a = s.b;
24
25
s.a = a;
26
s.b = a;
27
28
b = s.a;
29
b = s.b;
30
31
s.a = b;
32
s.b = b;
33
}