projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36096ac
)
Readd file
author
Mark Mitchell
<mmitchel@gcc.gnu.org>
Fri, 3 Sep 1999 00:24:24 +0000
(
00:24
+0000)
committer
Mark Mitchell
<mmitchel@gcc.gnu.org>
Fri, 3 Sep 1999 00:24:24 +0000
(
00:24
+0000)
From-SVN: r29072
gcc/testsuite/g++.old-deja/g++.other/cond2.C
patch
|
blob
|
history
diff --git
a/gcc/testsuite/g++.old-deja/g++.other/cond2.C
b/gcc/testsuite/g++.old-deja/g++.other/cond2.C
index
c025beb
..
a83273f
100644
(file)
--- a/
gcc/testsuite/g++.old-deja/g++.other/cond2.C
+++ b/
gcc/testsuite/g++.old-deja/g++.other/cond2.C
@@
-1,26
+1,11
@@
-// Build don't
run
:
-// Origin:
Mark Mitchell <mark@codesourcery.com
>
+// Build don't
link
:
+// Origin:
Loring Holden <lsh@cs.brown.edu
>
-template <class T>
-void f (T&) ;
-
-template <>
-void f (void (&)())
-{
-}
-
-void g ()
-{
-}
-
-void h ()
-{
-}
-
-bool b;
-
-int main ()
-{
- f (b ? g : h);
-}
+class Wpt {};
+class RAYhit {
+ protected:
+ Wpt _nearpt;
+ public:
+ Wpt surf () const { return true ? Wpt(): _nearpt; }
+};