aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-05-27 04:18:27 +0000
committerAnders Carlsson <andersca@mac.com>2009-05-27 04:18:27 +0000
commit0f294632f36459174199b77699e339715244b5ab (patch)
treec69f7330225b7a4d202d56e27bc9f62289b7d348 /test
parente9f2f45fe9bf79bd4aea47fa1ad9204b68510fd9 (diff)
Handle operator call expressions where the callee is a member function.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72458 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGenCXX/member-functions.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/CodeGenCXX/member-functions.cpp b/test/CodeGenCXX/member-functions.cpp
index 02c7e2c36d..3f40453e98 100644
--- a/test/CodeGenCXX/member-functions.cpp
+++ b/test/CodeGenCXX/member-functions.cpp
@@ -37,7 +37,7 @@ struct S {
static void f();
};
-// RUN: grep "define void @_ZN1S1fEv" %t
+// RUN: grep "define void @_ZN1S1fEv" %t &&
void S::f() {
}
@@ -50,3 +50,14 @@ void test2() {
S::g();
}
+
+struct T {
+ T operator+(const T&);
+};
+
+void test3() {
+ T t1, t2;
+
+ // RUN: grep "call void @_ZN1TpsERK1T" %t
+ T result = t1 + t2;
+}