comparison gcc/testsuite/g++.dg/parse/pr43765.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 // PR c++/43765
2 // { dg-options "" }
3
4 struct SomeType
5 {
6 int n;
7 const char *values[];
8 };
9 const char *temp[] = {"607", "612", 0};
10
11 SomeType vals[] =
12 {
13 { 0, values : temp, },
14 0
15 }; // { dg-error "GNU-style designated initializer for an array|cannot convert" }
16 // (note the error above is on the wrong line)
17