Clang Project

clang_source_code/test/SemaCXX/cast-explicit-ctor.cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2// expected-no-diagnostics
3struct B { explicit B(bool); };
4void f() { 
5  (void)(B)true;
6  (void)B(true); 
7}
8