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
c++: prvalue of array type [PR111286]
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
Wconversion-pr40752b.c
blob
208710bc772711e817dd513287ac0a5b44147d91
1
// PR c++/40752
2
// { dg-additional-options -funsigned-char }
3
4
#pragma GCC diagnostic error
"-Wsign-conversion"
5
void
f
(
char
*
ar
,
int
i
)
6
{
7
ar
[
i
] -=
'a'
-
'A'
;
8
}