Check in LLVM r95781.
diff --git a/test/SemaCXX/copy-constructor-error.cpp b/test/SemaCXX/copy-constructor-error.cpp
new file mode 100644
index 0000000..9cae775
--- /dev/null
+++ b/test/SemaCXX/copy-constructor-error.cpp
@@ -0,0 +1,12 @@
+// 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() );
+}
+