Sign in
android
/
toolchain
/
gcc
/
3f73d6ef904
/
.
/
gcc-4.6
/
gcc
/
testsuite
/
g++.dg
/
warn
/
string1.C
blob: 2670f63d931be2cde6483956efc0d1613c2ce056 [
file
] [
log
] [
blame
]
// PR c++/35652
// { dg-options "-O" }
#include
<string>
int
test
()
{
// blank line padding, could also be code...
//
//
//
//
//
//
//
//
//
std
::
string
s
=
""
;
s
+=
'x'
+
"y"
;
// { dg-warning "bounds of constant string" }
}