[RISCV][FMV] Support target_clones (#85786)
[llvm-project.git] / clang / test / Analysis / conversion.cpp
blobeab6dfc566ec31f376adf5b0bfe229032e04a9fd
1 // RUN: %clang_analyze_cc1 -Wno-conversion -Wno-tautological-constant-compare -analyzer-checker=core,alpha.core.Conversion -verify %s
3 // expected-no-diagnostics
5 void dontwarn1() {
6 unsigned long x = static_cast<unsigned long>(-1);
9 void dontwarn2(unsigned x) {
10 if (x == static_cast<unsigned>(-1)) {
14 struct C {
15 C(unsigned x, unsigned long y) {}
18 void f(C) {}
20 void functioncall1(long x) {
21 f(C(64, x));