llvm-for-llvmta/tools/clang/test/CodeGenCXX/reference-bind-default-argu...

8 lines
148 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 %s -emit-llvm-only -verify
// expected-no-diagnostics
struct A {};
struct B : A {};
void a(const A& x = B());
void b() { a(); }