commit | ccec40d9b75602c35025140fff5c4cdbd5f99f8d | [log] [tgz] |
---|---|---|
author | Nico Weber <nicolasweber@gmx.de> | Fri Mar 02 22:01:22 2012 +0000 |
committer | Nico Weber <nicolasweber@gmx.de> | Fri Mar 02 22:01:22 2012 +0000 |
tree | cf3973dd02034c6e193048abbbd419d7a24130c1 | |
parent | 7923ef41e18bf9fd31b2753cb026874001c36eb0 [diff] [blame] |
Add -Wstring-plus-int, which warns on "str" + int and int + "str". It doesn't warn if the integer is known at compile time and within the bounds of the string. Discussion: http://comments.gmane.org/gmane.comp.compilers.clang.scm/47203 llvm-svn: 151943
diff --git a/clang/test/SemaCXX/constant-expression-cxx11.cpp b/clang/test/SemaCXX/constant-expression-cxx11.cpp index dcc437a..66fd064 100644 --- a/clang/test/SemaCXX/constant-expression-cxx11.cpp +++ b/clang/test/SemaCXX/constant-expression-cxx11.cpp
@@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -triple i686-linux -fsyntax-only -verify -std=c++11 -pedantic %s -Wno-comment +// RUN: %clang_cc1 -triple i686-linux -Wno-string-plus-int -fsyntax-only -verify -std=c++11 -pedantic %s -Wno-comment namespace StaticAssertFoldTest {