diff options
author | Anders Carlsson <andersca@mac.com> | 2009-10-07 22:26:29 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-10-07 22:26:29 +0000 |
commit | 6e8f550439c09f3f044d651354e297518b553712 (patch) | |
tree | 94fbcb27fc33f81336a014503558d1d16b2b9f9a /test/SemaCXX/addr-of-overloaded-function.cpp | |
parent | 71fdaf4c5e33bed9b9133a5c3bbdbd930a702a6c (diff) |
Handle MemberExprs in ResolveAddressOfOverloadedFunction.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83495 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/addr-of-overloaded-function.cpp')
-rw-r--r-- | test/SemaCXX/addr-of-overloaded-function.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/SemaCXX/addr-of-overloaded-function.cpp b/test/SemaCXX/addr-of-overloaded-function.cpp index c2a6b50118..80ea02bafd 100644 --- a/test/SemaCXX/addr-of-overloaded-function.cpp +++ b/test/SemaCXX/addr-of-overloaded-function.cpp @@ -44,3 +44,13 @@ void h_test() { ha(h1); hb(h1); } + +struct A { }; +void f(void (*)(A *)); + +struct B +{ + void g() { f(d); } + void d(void *); + static void d(A *); +}; |