summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/PR5093-static-member-function.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-09-29 03:54:11 +0000
committerAnders Carlsson <andersca@mac.com>2009-09-29 03:54:11 +0000
commit2472bf0a1735fa9c60a01946d5ed53b64c9c2422 (patch)
tree7f4eba424a146c8240aa66ddd40a06554703d775 /test/CodeGenCXX/PR5093-static-member-function.cpp
parent7b69956387785006244e7868f8dab09b371dbb6d (diff)
Handle CXXMemberCallExprs that point to a static method. Fixes PR5093.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83045 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/PR5093-static-member-function.cpp')
-rw-r--r--test/CodeGenCXX/PR5093-static-member-function.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGenCXX/PR5093-static-member-function.cpp b/test/CodeGenCXX/PR5093-static-member-function.cpp
new file mode 100644
index 0000000000..a27b08f6ad
--- /dev/null
+++ b/test/CodeGenCXX/PR5093-static-member-function.cpp
@@ -0,0 +1,9 @@
+// RUN: clang-cc %s -emit-llvm -o - | FileCheck %s
+struct a {
+ static void f();
+};
+
+void g(a *a) {
+ // CHECK: call void @_ZN1a1fEv()
+ a->f();
+}