summaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/cast-explicit-ctor.cpp
blob: 0052856d2ff928d7601b68a0b3ffaadd6c069113 (about) (plain)
1
2
3
4
5
6
// RUN: %clang_cc1 -fsyntax-only -verify %s
struct B { explicit B(bool); };
void f() { 
  (void)(B)true;
  (void)B(true); 
}