1*c7104e50SAmy Huang // RUN: %clang_cc1 -triple i686-windows %s -fsyntax-only -Wmicrosoft -verify -fms-extensions
2*c7104e50SAmy Huang // RUN: %clang_cc1 -triple x86_64-windows %s -fsyntax-only -Wmicrosoft -verify -fms-extensions
3*c7104e50SAmy Huang // expected-no-diagnostics
4*c7104e50SAmy Huang 
5*c7104e50SAmy Huang // Check that __ptr32/__ptr64 can be compared.
test_ptr_comparison(int * __ptr32 __uptr p32u,int * __ptr32 __sptr p32s,int * __ptr64 p64)6*c7104e50SAmy Huang int test_ptr_comparison(int *__ptr32 __uptr p32u, int *__ptr32 __sptr p32s,
7*c7104e50SAmy Huang                         int *__ptr64 p64) {
8*c7104e50SAmy Huang   return (p32u == p32s) +
9*c7104e50SAmy Huang          (p32u == p64) +
10*c7104e50SAmy Huang          (p32s == p64);
11*c7104e50SAmy Huang }
12