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
gcc/
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr35652.c
blob
50ec3acf10a6532b7029f1f8fc9fcd324febbe4c
1
/* PR c++/35652: wrong location and duplicated warning.
2
{ dg-do compile }
3
{ dg-options "" } */
4
int
bar
()
5
{
6
const char
*
s
=
'z'
+
"y"
;
/* { dg-warning "offset '122' outside bounds of constant string" } */
7
}
8
9
int
g
()
10
{
11
char
str
[
2
];
12
const char
*
p
=
str
+
sizeof
(
str
);
13
}