summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/temp-1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/temp-1.cpp')
-rw-r--r--clang/test/CodeGenCXX/temp-1.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/temp-1.cpp b/clang/test/CodeGenCXX/temp-1.cpp
index 1edcae4acfc..737bf65b473 100644
--- a/clang/test/CodeGenCXX/temp-1.cpp
+++ b/clang/test/CodeGenCXX/temp-1.cpp
@@ -35,10 +35,23 @@ struct C {
};
// RUN: grep "call void @_ZN1CC1Ev" %t | count 1 &&
-// RUN: grep "call void @_ZN1CD1Ev" %t | count 2
+// RUN: grep "call void @_ZN1CD1Ev" %t | count 2 &&
void f3() {
C().f();
}
+// Function call operator
+struct D {
+ D();
+ ~D();
+
+ D operator()();
+};
+
+// RUN: grep "call void @_ZN1DC1Ev" %t | count 1 &&
+// RUN: grep "call void @_ZN1DD1Ev" %t | count 2
+void f4() {
+ D()();
+}
OpenPOWER on IntegriCloud