llvm-for-llvmta/tools/clang/test/Analysis/cast-value-weird.cpp

10 lines
218 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02: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