Emit conversion functions correctly.

llvm-svn: 79985
diff --git a/clang/test/CodeGenCXX/conversion-function.cpp b/clang/test/CodeGenCXX/conversion-function.cpp
new file mode 100644
index 0000000..57e5ad7
--- /dev/null
+++ b/clang/test/CodeGenCXX/conversion-function.cpp
@@ -0,0 +1,9 @@
+// RUN: clang-cc %s -emit-llvm -o %t &&
+struct S {
+	operator int();
+};
+
+// RUN: grep "_ZN1ScviEv" %t
+S::operator int() {
+	return 10;
+}