aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/no-warn-composite-pointer-type.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-10-17 23:19:22 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-10-17 23:19:22 +0000
commitbea52dac0c2e717990109cfd4812bc3422378b1a (patch)
tree5cc07e55be1520395a823c711d4e16ebb4b2f59f /test/SemaCXX/no-warn-composite-pointer-type.cpp
parent5ba49c0177bd594a9760956f51293b5731b03d6d (diff)
Adds couple of missing warning flags so warnings can be turned
off. // rdar://12501960 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166150 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/no-warn-composite-pointer-type.cpp')
-rw-r--r--test/SemaCXX/no-warn-composite-pointer-type.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/SemaCXX/no-warn-composite-pointer-type.cpp b/test/SemaCXX/no-warn-composite-pointer-type.cpp
new file mode 100644
index 0000000000..b52914a2c3
--- /dev/null
+++ b/test/SemaCXX/no-warn-composite-pointer-type.cpp
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -fsyntax-only -Wno-compare-distinct-pointer-type -verify %s
+// rdar://12501960
+
+void Foo(int **thing, const int **thingMax)
+{
+ if ((thing + 3) > thingMax)
+ return;
+}