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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [enum15.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/44311
2
// { dg-options -std=c++0x }
3
 
4
enum class A { Val0, Val1 };
5
 
6
void foo (A a, int i)
7
{
8
  switch (a)
9
    {
10
    case A::Val0: break;
11
    case 1: break;              // { dg-error "" }
12
    }
13
 
14
  switch (i)
15
    {
16
    case A::Val0: break;        // { dg-error "" }
17
    case 1: break;
18
    case 2.0: break;
19
    }
20
}

powered by: WebSVN 2.1.0

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