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
Merged revision 156805 into branch.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
string1.C
blob
302772795cdbb73b9a7eb20ba01404b3a4b66987
1
// PR c++/35652
2
// { dg-options "-O" }
3
4
#include <string>
5
int main() {
6
// blank line padding, could also be code...
7
//
8
//
9
//
10
//
11
//
12
//
13
//
14
//
15
//
16
std::string s = "";
17
s += 'x' + "y"; // { dg-warning "bounds of constant string" }
18
}