bolt/deps/llvm-18.1.8/clang/test/Analysis/cast-value-weird.cpp

10 lines
218 B
C++
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_analyze_cc1 -analyzer-checker=core,apiModeling -verify %s
// expected-no-diagnostics
namespace llvm {
template <typename>
void cast(...);
void a() { cast<int>(int()); } // no-crash
} // namespace llvm