Fix broken MinGW build of gcc.c
[official-gcc.git] / gcc / testsuite / g++.dg / warn / string1.C
blob2670f63d931be2cde6483956efc0d1613c2ce056
1 // PR c++/35652
2 // { dg-options "-O" }
4 #include <string>
5 int test() {
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" }