freebsd-dev/test/SemaCXX/cast-explicit-ctor.cpp
2009-10-14 18:03:49 +00:00

7 lines
123 B
C++

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