summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/writable-strings-deprecated.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-04-23 06:54:44 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-04-23 06:54:44 +0000
commit153329dad73ce973fb3306e81522c3733c9dfd2c (patch)
treee0788e4e056a018ac870cea89a291075445fff1b /clang/test/SemaCXX/writable-strings-deprecated.cpp
parentb009b14971cbeb9889567b2ecfae4553fbea90ff (diff)
downloadbcm5719-llvm-153329dad73ce973fb3306e81522c3733c9dfd2c.tar.gz
bcm5719-llvm-153329dad73ce973fb3306e81522c3733c9dfd2c.zip
GCC overloads -Wwrite-strings just to make it extra confusing. While it
changes language semantics in C and ObjC (which Clang has supported for a while), in C++ it's the name used for Clang's -Wdeprecated-writable-strings. Clang's name is at least less overloaded if still confusing (the string isn't writable, we just allow converting to a non-const pointer without warning), so I've left it in place and made the GCC name an alias for compatibility. With this I've implemented all the aspects of GCC's -Wwrite-strings I've encountered which didn't work with Clang. llvm-svn: 130052
Diffstat (limited to 'clang/test/SemaCXX/writable-strings-deprecated.cpp')
-rw-r--r--clang/test/SemaCXX/writable-strings-deprecated.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/writable-strings-deprecated.cpp b/clang/test/SemaCXX/writable-strings-deprecated.cpp
index 66b59947981..82954014956 100644
--- a/clang/test/SemaCXX/writable-strings-deprecated.cpp
+++ b/clang/test/SemaCXX/writable-strings-deprecated.cpp
@@ -1,5 +1,6 @@
// RUN: %clang_cc1 -fsyntax-only -Wno-deprecated-writable-strings -verify %s
// RUN: %clang_cc1 -fsyntax-only -fwritable-strings -verify %s
+// RUN: %clang_cc1 -fsyntax-only -Wno-write-strings -verify %s
// rdar://8827606
char *fun(void)
OpenPOWER on IntegriCloud