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++.dg/] [parse/] [defarg5.C] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// { dg-do compile }
// { dg-do compile }
// Copyright (C) 2003 Free Software Foundation, Inc.
// Copyright (C) 2003 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 5 Sep 2003 
// Contributed by Nathan Sidwell 5 Sep 2003 
// Origin:Wolfgang Bangerth bangerth@dealii.org
// Origin:Wolfgang Bangerth bangerth@dealii.org
// PR c++/12167 - infinite recursion
// PR c++/12167 - infinite recursion
class A {
class A {
  void report(int d
  void report(int d
              // the default arg is what NAN etc can expand to, but
              // the default arg is what NAN etc can expand to, but
              // with the floatiness removed.
              // with the floatiness removed.
              = (__extension__ ((union { unsigned l; int d; })
              = (__extension__ ((union { unsigned l; int d; })
                                { l: 0x7fc00000U }).d));
                                { l: 0x7fc00000U }).d));
};
};
 
 

powered by: WebSVN 2.1.0

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