summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/class.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-10-25 03:07:45 +0000
committerDouglas Gregor <dgregor@apple.com>2011-10-25 03:07:45 +0000
commitab6bc1d13e56f7f8e2fca8550617f1d990b1ab0c (patch)
tree352904a60b103c05e57c5907cb62a402d36063c5 /clang/test/SemaCXX/class.cpp
parent0c8e006987fb0adf8f5e4bb05f0e5e4e27df9a89 (diff)
downloadbcm5719-llvm-ab6bc1d13e56f7f8e2fca8550617f1d990b1ab0c.tar.gz
bcm5719-llvm-ab6bc1d13e56f7f8e2fca8550617f1d990b1ab0c.zip
Make the -Wc++11-compat warnings ignored by default, so we don't break
valid C++98/03 code. However, add these warnings to -Wall, for those who obviously already like clean code. llvm-svn: 142903
Diffstat (limited to 'clang/test/SemaCXX/class.cpp')
-rw-r--r--clang/test/SemaCXX/class.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/class.cpp b/clang/test/SemaCXX/class.cpp
index 160f365f4bb..5393230f5db 100644
--- a/clang/test/SemaCXX/class.cpp
+++ b/clang/test/SemaCXX/class.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -verify -Wc++11-compat %s
class C {
public:
auto int errx; // expected-error {{error: storage class specified for a member declaration}} expected-warning {{'auto' storage class specifier is redundant}}
OpenPOWER on IntegriCloud