1 | // RUN: %clang_cc1 %s -emit-llvm-only -verify |
---|---|
2 | // expected-no-diagnostics |
3 | |
4 | struct A {}; |
5 | struct B : A {}; |
6 | void a(const A& x = B()); |
7 | void b() { a(); } |
8 |
1 | // RUN: %clang_cc1 %s -emit-llvm-only -verify |
---|---|
2 | // expected-no-diagnostics |
3 | |
4 | struct A {}; |
5 | struct B : A {}; |
6 | void a(const A& x = B()); |
7 | void b() { a(); } |
8 |