OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [parms2.C] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// { dg-do assemble  }
// { dg-do assemble  }
//
//
// Copyright (C) 2000 Free Software Foundation, Inc.
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 5 Sept 2000 
// Contributed by Nathan Sidwell 5 Sept 2000 
// bug 73. We failed to compare explicit arguments for a TEMPLATE_ID_EXPR in a
// bug 73. We failed to compare explicit arguments for a TEMPLATE_ID_EXPR in a
// TYPENAME_TYPE.
// TYPENAME_TYPE.
struct Plus {
struct Plus {
  template 
  template 
  struct Sig { typedef int Third;};
  struct Sig { typedef int Third;};
};
};
template 
template 
struct Ethel {
struct Ethel {
  typedef int WrappedType;
  typedef int WrappedType;
};
};
struct Fred {
struct Fred {
  template 
  template 
  Ethel::Third> baz ();
  Ethel::Third> baz ();
  template 
  template 
  Ethel::Third>
  Ethel::Third>
  foo ( const Z&, const Ethel&, const Ethel&) const;
  foo ( const Z&, const Ethel&, const Ethel&) const;
};
};
int main() {
int main() {
  Fred f;
  Fred f;
  Ethel e;
  Ethel e;
  Plus p;
  Plus p;
  f.foo (p, e, e);
  f.foo (p, e, e);
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.