diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-09-14 22:31:20 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-09-14 22:31:20 +0000 |
commit | 60d923125a1f267403f1b62fa9a15d702e557dbf (patch) | |
tree | 99f8cd5fa9e1543bd55b087e8336925c71fd8343 /test/SemaCXX/addr-of-overloaded-function.cpp | |
parent | d173b207a032b39d35727877fc794aa2f52dc290 (diff) |
Slightly improve the test for partial ordering of overloaded function
templates.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81806 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 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/SemaCXX/addr-of-overloaded-function.cpp b/test/SemaCXX/addr-of-overloaded-function.cpp index e49b477612..c2a6b50118 100644 --- a/test/SemaCXX/addr-of-overloaded-function.cpp +++ b/test/SemaCXX/addr-of-overloaded-function.cpp @@ -35,10 +35,12 @@ void g_test() { template<typename T> T h1(T); template<typename R, typename A1> R h1(A1); -int h2(char); +int h1(char); -void h(int (*fp)(int)); +void ha(int (*fp)(int)); +void hb(int (*fp)(double)); void h_test() { - h(h1); + ha(h1); + hb(h1); } |