summaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/2008-01-11-BadWarning.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/2008-01-11-BadWarning.cpp')
-rw-r--r--clang/test/SemaCXX/2008-01-11-BadWarning.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/2008-01-11-BadWarning.cpp b/clang/test/SemaCXX/2008-01-11-BadWarning.cpp
new file mode 100644
index 0000000..b84e7c1
--- /dev/null
+++ b/clang/test/SemaCXX/2008-01-11-BadWarning.cpp
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -Wall %s
+// rdar://5683899
+void** f(void **Buckets, unsigned NumBuckets) {
+ return Buckets + NumBuckets;
+}