aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/unused-functions.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-03-03 17:47:42 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-03-03 17:47:42 +0000
commit48b89590f61575cbf365ba996a2bd1ba1561a4ab (patch)
tree23a144476f61233b585511ba46058dfe06a17c73 /test/SemaCXX/unused-functions.cpp
parent159c0a099f980e76096df2d7ffb70dd061c1dc3b (diff)
Don't emit unused warning for deleted functions. Fixes rdar://8365684 & http://llvm.org/PR9391.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126950 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/unused-functions.cpp')
-rw-r--r--test/SemaCXX/unused-functions.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/SemaCXX/unused-functions.cpp b/test/SemaCXX/unused-functions.cpp
index cefa9e118a..f164bf2768 100644
--- a/test/SemaCXX/unused-functions.cpp
+++ b/test/SemaCXX/unused-functions.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -Wunused -verify %s
+// RUN: %clang_cc1 -std=c++0x -fsyntax-only -Wunused -verify %s
static int foo(int x) { return x; }
@@ -6,3 +6,5 @@ template<typename T>
T get_from_foo(T y) { return foo(y); }
int g(int z) { return get_from_foo(z); }
+
+namespace { void f() = delete; }