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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [debug/] [dwarf2/] [enum1.C] - Blame information for rev 715

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-g -dA -gno-strict-dwarf -std=c++0x" }
3
// { dg-final { scan-assembler-times "DIE\[^\n\r\]*DW_TAG_enumeration_type" 3 } }
4
// { dg-final { scan-assembler-times " DW_AT_enum_class" 2 } }
5
 
6
enum A { a1, a2 } a;
7
enum struct B { b1, b2 } b;
8
enum class C { c1, c2 } c;
9
 
10
void
11
foo ()
12
{
13
  a = a1;
14
  a = A::a2;
15
  b = B::b1;
16
  b = B::b2;
17
  c = C::c1;
18
  c = C::c2;
19
}

powered by: WebSVN 2.1.0

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