// RUN: %clang_cc1 -fsyntax-only -verify %s 

struct S {
   S (S);  // expected-error {{copy constructor must pass its first argument by reference}}
};

S f();

void g() { 
  S a( f() );
}


// RUN: %clang_cc1 -fsyntax-only -verify %s 

struct S {
   S (S);  // expected-error {{copy constructor must pass its first argument by reference}}
};

S f();

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);
  }
}

Add test case from PR6064, which now works
Add test case from PR6064, which now works

git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@97575 91177308-0d34-0410-b5e6-96231b3b80d8
