Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wstringop-overflow-8.C
blob: d0ef5e73f9374485708e414acb3f8048e6698d6e [
file
] [
log
] [
blame
]
// PR c++/103534
// { dg-additional-options "-O -Wall" }
#include
<string>
std
::
string
foo
(
std
::
string
x
)
{
// This used to get a bogus -Wstringop-overflow warning.
return
std
::
string
(
"1234567890123456"
)
+
x
;
}