Add test case from PR6064, which now works

llvm-svn: 97575
This commit is contained in:
Douglas Gregor 2010-03-02 18:48:07 +00:00
parent fb8c2b2f57
commit 63d08ddda6
1 changed files with 13 additions and 0 deletions

View File

@ -10,3 +10,16 @@ void g() {
S a( f() );
}
namespace PR6064 {
struct A {
A() { }
inline A(A&, int);
};
A::A(A&, int = 0) { }
void f() {
A const a;
A b(a);
}
}