| Daniel Dunbar | 8fbe78f | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s | 
| Anders Carlsson | 574315a | 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 | } | ||||