hanchenye-llvm-project/clang/test/SemaCXX/cast-explicit-ctor.cpp

7 lines
114 B
C++
Raw Normal View History

// RUN: clang-cc -fsyntax-only -verify %s
struct B { B(bool); };
void f() {
(void)(B)true;
(void)B(true);
}