xref: /llvm-project/clang/test/SemaCXX/no-warn-composite-pointer-type.cpp (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1 // RUN: %clang_cc1 -fsyntax-only -Wno-compare-distinct-pointer-types -verify %s
2 // expected-no-diagnostics
3 
Foo(int ** thing,const int ** thingMax)4 void Foo(int **thing, const int **thingMax)
5 {
6         if ((thing + 3) > thingMax)
7                 return;
8 }
9