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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [sizeof6.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 compile }
// { dg-do compile }
// Contributed by Giovanni Bajo 
// Contributed by Giovanni Bajo 
// PR c++/13683: bogus warning about passing non-PODs through ellipsis
// PR c++/13683: bogus warning about passing non-PODs through ellipsis
struct B {};
struct B {};
struct NonPOD : B {};
struct NonPOD : B {};
struct A
struct A
{
{
  static int check(...);
  static int check(...);
  static NonPOD GetNonPOD(void);
  static NonPOD GetNonPOD(void);
  enum { value = sizeof(A::check(A::GetNonPOD())) };
  enum { value = sizeof(A::check(A::GetNonPOD())) };
};
};
 
 

powered by: WebSVN 2.1.0

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