projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f45ebe4
)
From egcs release branch
author
Jeff Law
<law@gcc.gnu.org>
Mon, 1 Dec 1997 18:18:10 +0000
(11:18 -0700)
committer
Jeff Law
<law@gcc.gnu.org>
Mon, 1 Dec 1997 18:18:10 +0000
(11:18 -0700)
From-SVN: r16867
gcc/testsuite/g++.old-deja/g++.pt/spec1.C
[new file with mode: 0644]
patch
|
blob
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/spec1.C
b/gcc/testsuite/g++.old-deja/g++.pt/spec1.C
new file mode 100644
(file)
index 0000000..
7467293
--- /dev/null
+++ b/
gcc/testsuite/g++.old-deja/g++.pt/spec1.C
@@ -0,0
+1,21
@@
+// Build don't link:
+
+template <class S, class T>
+class mem_fun1_t {
+public:
+ mem_fun1_t(S (T::*pf)(double)) {}
+};
+
+template <class T>
+class mem_fun1_t<void, T> {
+public:
+ mem_fun1_t(void (T::*pf)(double)) {}
+};
+
+struct Operation {
+ double eval(double) {}
+};
+
+int main() {
+ mem_fun1_t<double, Operation> m(&Operation::eval);
+}