forked from OSchip/llvm-project
parent
8d799c5144
commit
f2bc7c386e
|
|
@ -784,7 +784,7 @@ TryStaticImplicitCast(Sema &Self, Expr *SrcExpr, QualType DestType,
|
||||||
ImplicitConversionSequence ICS =
|
ImplicitConversionSequence ICS =
|
||||||
Self.TryImplicitConversion(SrcExpr, DestType,
|
Self.TryImplicitConversion(SrcExpr, DestType,
|
||||||
/*SuppressUserConversions=*/false,
|
/*SuppressUserConversions=*/false,
|
||||||
/*AllowExplicit=*/false,
|
/*AllowExplicit=*/true,
|
||||||
/*ForceRValue=*/false,
|
/*ForceRValue=*/false,
|
||||||
/*InOverloadResolution=*/false);
|
/*InOverloadResolution=*/false);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
// RUN: clang-cc -fsyntax-only -verify %s
|
||||||
|
struct B { B(bool); };
|
||||||
|
void f() {
|
||||||
|
(void)(B)true;
|
||||||
|
(void)B(true);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue