bolt/deps/llvm-18.1.8/clang/test/SemaCXX/cast-explicit-ctor.cpp
2025-02-14 19:21:04 +01:00

7 lines
152 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
struct B { explicit B(bool); };
void f() {
(void)(B)true;
(void)B(true);
}