We weren't generating correct code for calls to variadic member functions.
llvm-svn: 68635
diff --git a/clang/test/CodeGenCXX/member-functions.cpp b/clang/test/CodeGenCXX/member-functions.cpp
index a6fa000..9cdab0a 100644
--- a/clang/test/CodeGenCXX/member-functions.cpp
+++ b/clang/test/CodeGenCXX/member-functions.cpp
@@ -1,15 +1,19 @@
// RUN: clang-cc -emit-llvm %s -o %t &&
struct C {
void f();
+ void g(int, ...);
};
// RUN: grep "define void @_ZN1C1fEv" %t | count 1 &&
void C::f() {
}
-// RUN: grep "call void @_ZN1C1fEv" %t | count 1
void f() {
C c;
+// RUN: grep "call void @_ZN1C1fEv" %t | count 1 &&
c.f();
-}
\ No newline at end of file
+
+// RUN: grep "call void (.struct.C\*, i32, ...)\* @_ZN1C1gEiz" %t | count 1
+ c.g(1, 2, 3);
+}