Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Anders Carlsson | e7624a7 | 2009-08-27 05:08:22 +0000 | [diff] [blame] | 2 | struct B { B(void* = 0); }; |
3 | |||||
4 | struct A { | ||||
5 | A(B b = B()) { } | ||||
6 | }; | ||||
7 | |||||
8 | void f() { | ||||
9 | (void)B(); | ||||
10 | (void)A(); | ||||
11 | } |