Eli Friedman | 27a9b72 | 2009-12-19 00:20:10 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -emit-llvm-only -verify |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Eli Friedman | 27a9b72 | 2009-12-19 00:20:10 +0000 | [diff] [blame] | 3 | |
4 | struct A {}; | ||||
5 | struct B : A {}; | ||||
6 | void a(const A& x = B()); | ||||
7 | void b() { a(); } |