blob: f7ba61783da94b993371cedc29f702821efa08b3 [file] [log] [blame]
// PR middle-end/98994
// { dg-do compile }
// { dg-additional-options "-Wstringop-overread -O2" }
#include <string>
const char constantString[] = {42, 53};
void f(std::string& s)
{
s.insert(0, static_cast<const char*>(constantString), 2);
}