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
/
complit10.C
blob
7f159f0f707ab0f012a8c792c3e5c788866284ac
1
// PR c++/36023
2
// { dg-do compile }
3
// { dg-options "" }
4
5
struct A;
6
7
void
8
f1 (int i)
9
{
10
(int[i]) { 1 }; // { dg-error "variable-sized compound literal" }
11
(A[5]) { 1 }; // { dg-error "have incomplete type" }
12
(A[i]) { 1 }; // { dg-error "have incomplete type" }
13
}
14
15
void
16
f2 ()
17
{
18
(int[]) { 1 };
19
(int[1]) { 1 };
20
}