diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/warn/pr35652.C')
-rw-r--r-- | gcc/testsuite/g++.dg/warn/pr35652.C | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/gcc/testsuite/g++.dg/warn/pr35652.C b/gcc/testsuite/g++.dg/warn/pr35652.C deleted file mode 100644 index 7ce9431eb2b..00000000000 --- a/gcc/testsuite/g++.dg/warn/pr35652.C +++ /dev/null @@ -1,30 +0,0 @@ -// PR c++/35652: wrong location and duplicated warning. -// { dg-do compile } -// { dg-options "-fshow-column" } -#include <string> -int foo() { - // blank line padding, could also be code... - // - // - // - // - // - // - // - // - // - std::string s = ""; - s += 'x' + "y"; // { dg-warning "14:offset '120' outside bounds of constant string" } - // { dg-bogus "offset '120' outside bounds of constant string.*offset '120' outside bounds of constant string" "duplicated" { target *-*-* } 17 } -} - -int bar() -{ - const char *s = 'z' + "y"; /* { dg-warning "25:offset '122' outside bounds of constant string" } */ -} - -int g() -{ - char str[2]; - const char *p = str + sizeof(str); -} |