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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [other/] [switch1.C] - Blame information for rev 316

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

Line No. Rev Author Line
1 301 jeremybenn
// { dg-do compile }
2
// Contributed by: Nick Savoiu 
3
// PR c++/14250: Incomplete type in switch statement
4
 
5
template 
6
struct A {
7
  operator int();
8
};
9
 
10
struct C1 {
11
  static A t1;
12
 
13
  void fun()
14
  {
15
   switch(t1)
16
   {
17
    default: break;
18
   }
19
  }
20
};

powered by: WebSVN 2.1.0

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