[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Analysis / ptr-cmp-const-trunc.cl
blob4483ef68397c7ab03dbee7e88c6f68d56a63e560
1 //RUN: %clang_analyze_cc1 -triple amdgcn-unknown-unknown -analyze -analyzer-checker=core -verify %s
2 // expected-no-diagnostics
4 #include <stdint.h>
6 void bar(__global int *p) __attribute__((nonnull(1)));
8 void foo(__global int *p) {
9 if ((uint64_t)p <= 1UL << 32)
10 bar(p); // no-warning