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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [sizeof6.C] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// Contributed by Giovanni Bajo 
3
// PR c++/13683: bogus warning about passing non-PODs through ellipsis
4
 
5
struct B {};
6
struct NonPOD : B {};
7
 
8
struct A
9
{
10
  static int check(...);
11
  static NonPOD GetNonPOD(void);
12
  enum { value = sizeof(A::check(A::GetNonPOD())) };
13
};

powered by: WebSVN 2.1.0

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