[cfe-commits] r81806 - /cfe/trunk/test/SemaCXX/addr-of-overloaded-function.cpp
Douglas Gregor
dgregor at apple.com
Mon Sep 14 15:31:21 PDT 2009
Author: dgregor
Date: Mon Sep 14 17:31:20 2009
New Revision: 81806
URL: http://llvm.org/viewvc/llvm-project?rev=81806&view=rev
Log:
Slightly improve the test for partial ordering of overloaded function
templates.
Modified:
cfe/trunk/test/SemaCXX/addr-of-overloaded-function.cpp
Modified: cfe/trunk/test/SemaCXX/addr-of-overloaded-function.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/addr-of-overloaded-function.cpp?rev=81806&r1=81805&r2=81806&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/addr-of-overloaded-function.cpp (original)
+++ cfe/trunk/test/SemaCXX/addr-of-overloaded-function.cpp Mon Sep 14 17:31:20 2009
@@ -35,10 +35,12 @@
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);
}
More information about the cfe-commits
mailing list