2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2009-08-29 00:57:08 +08:00
|
|
|
struct B { explicit B(bool); };
|
2009-08-29 00:22:20 +08:00
|
|
|
void f() {
|
|
|
|
(void)(B)true;
|
|
|
|
(void)B(true);
|
|
|
|
}
|