commit | fb3bb31af0bdf25b869d42599133d590cdf8c2c1 | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Tue Aug 24 05:23:20 2010 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Tue Aug 24 05:23:20 2010 +0000 |
tree | b246578d695fed4e5faa7093f11031ec14e0bbf4 | |
parent | 4497dd49f78eb5e1a7c3f19d1a13564f79e12341 [diff] [blame] |
PR7971: Compute the correct type for an address-of expression containing an UnresolvedMemberExpr. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111899 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaCXX/addr-of-overloaded-function.cpp b/test/SemaCXX/addr-of-overloaded-function.cpp index f8b00df..b581b8a 100644 --- a/test/SemaCXX/addr-of-overloaded-function.cpp +++ b/test/SemaCXX/addr-of-overloaded-function.cpp
@@ -86,3 +86,13 @@ myFunction(bar); } } + +namespace PR7971 { + struct S { + void g() { + f(&g); + } + void f(bool (*)(int, char)); + static bool g(int, char); + }; +}