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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
const12.C
blob
2f6f9b280fb5d2b385ede5dd1b1e41fc08c0dfee
1
// PR c++/69688
2
// { dg-do compile }
3
// { dg-options "-Wsign-compare" }
4
5
struct S
6
{
7
static const int s;
8
static const char c[];
9
static wchar_t w[];
10
11
S ()
12
{
13
for (int i = 0; i < s; i++)
14
w[i] = 0;
15
}
16
};
17
18
const char S::c[] = "x";
19
const int S::s = sizeof (S::c) - 1;
20
wchar_t S::w[S::s];