summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/reference-bind-default-argument.cpp
blob: 5cf279f62a185a4e422be88c27a1c0b8122a90a0 (plain)
1
2
3
4
5
6
7
// 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(); }