Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Anders Carlsson | faccd72 | 2009-08-28 16:57:08 +0000 | [diff] [blame] | 3 | struct B { explicit B(bool); }; |
Anders Carlsson | 83b534c | 2009-08-28 16:22:20 +0000 | [diff] [blame] | 4 | void f() { |
5 | (void)(B)true; | ||||
6 | (void)B(true); | ||||
7 | } |