Readd file

From-SVN: r29071
This commit is contained in:
Mark Mitchell 1999-09-03 00:23:55 +00:00
parent 3ebd9bc487
commit 36096ac71b
2 changed files with 50 additions and 9 deletions

View File

@ -0,0 +1,26 @@
// Build don't run:
// Origin: Mark Mitchell <mark@codesourcery.com>
template <class T>
void f (T&) ;
template <>
void f (void (&)())
{
}
void g ()
{
}
void h ()
{
}
bool b;
int main ()
{
f (b ? g : h);
}

View File

@ -1,11 +1,26 @@
// Build don't link:
// Origin: Loring Holden <lsh@cs.brown.edu>
// Build don't run:
// Origin: Mark Mitchell <mark@codesourcery.com>
class Wpt {};
template <class T>
void f (T&) ;
template <>
void f (void (&)())
{
}
void g ()
{
}
void h ()
{
}
bool b;
int main ()
{
f (b ? g : h);
}
class RAYhit {
protected:
Wpt _nearpt;
public:
Wpt surf () const { return true ? Wpt(): _nearpt; }
};