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

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

Rev 149 Rev 154
// { dg-do assemble  }
// { dg-do assemble  }
//
//
// Copyright (C) 2001 Free Software Foundation, Inc.
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 24 Jul 2001 
// Contributed by Nathan Sidwell 24 Jul 2001 
// Bug 3416. We left some unchecked overloaded functions lying around.
// Bug 3416. We left some unchecked overloaded functions lying around.
struct X
struct X
{
{
  void operator << (int);
  void operator << (int);
  void operator << (float);
  void operator << (float);
};
};
void OVL1 (int);
void OVL1 (int);
void OVL1 (float);
void OVL1 (float);
void OVL2 (int);
void OVL2 (int);
void OVL2 (float);
void OVL2 (float);
X x;
X x;
void foo (bool a)
void foo (bool a)
{
{
  x << (a ? OVL1 : OVL2);       // { dg-error "" } incomplete type
  x << (a ? OVL1 : OVL2);       // { dg-error "" } incomplete type
  a ? OVL1 : OVL2;              // { dg-error "" } incomplete type
  a ? OVL1 : OVL2;              // { dg-error "" } incomplete type
}
}
 
 

powered by: WebSVN 2.1.0

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