mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-24 20:09:48 +08:00
Readd file
From-SVN: r29072
This commit is contained in:
parent
36096ac71b
commit
6aabeed2cb
@ -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; }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user