We weren't generating correct code for calls to variadic member functions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68635 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenCXX/member-functions.cpp b/test/CodeGenCXX/member-functions.cpp
index a6fa000..9cdab0a 100644
--- a/test/CodeGenCXX/member-functions.cpp
+++ b/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);
+}