summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/member-call-parens.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/member-call-parens.cpp')
-rw-r--r--clang/test/CodeGenCXX/member-call-parens.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/member-call-parens.cpp b/clang/test/CodeGenCXX/member-call-parens.cpp
new file mode 100644
index 0000000..2054137
--- /dev/null
+++ b/clang/test/CodeGenCXX/member-call-parens.cpp
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -emit-llvm-only -verify %s
+
+struct A { int a(); };
+typedef int B;
+void a() {
+ A x;
+ ((x.a))();
+ ((x.*&A::a))();
+ B y;
+ // FIXME: Sema doesn't like this for some reason...
+ //(y.~B)();
+}