[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Sema / ext-typecheck-comparison-of-pointer-integer.c
blobb928156aff28c8c0d8d8046fb6164d384b0d619e
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -fsyntax-only -verify -DEXPECTWARNING %s
2 // RUN: %clang_cc1 -triple x86_64-apple-darwin -fsyntax-only -verify -Wno-pointer-integer-compare %s
4 #ifdef EXPECTWARNING
5 // expected-warning@+6 {{comparison between pointer and integer ('int' and 'int *')}}
6 #else
7 // expected-no-diagnostics
8 #endif
10 int test_ext_typecheck_comparison_of_pointer_integer(int integer, int * pointer) {
11 return integer != pointer;