OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [other/] [switch1.C] - Diff between revs 301 and 384

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

Rev 301 Rev 384
// { dg-do compile }
// { dg-do compile }
// Contributed by: Nick Savoiu 
// Contributed by: Nick Savoiu 
// PR c++/14250: Incomplete type in switch statement
// PR c++/14250: Incomplete type in switch statement
template 
template 
struct A {
struct A {
  operator int();
  operator int();
};
};
struct C1 {
struct C1 {
  static A t1;
  static A t1;
  void fun()
  void fun()
  {
  {
   switch(t1)
   switch(t1)
   {
   {
    default: break;
    default: break;
   }
   }
  }
  }
};
};
 
 

powered by: WebSVN 2.1.0

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