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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [debug/] [dwarf2/] [pr45997-2.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
// PR debug/45997
2
// { dg-do compile }
3
// { dg-options "-gdwarf-2 -dA" }
4
 
5
typedef int my_int;
6
typedef volatile my_int volatile_my_int;
7
typedef const volatile_my_int const_volatile_my_int;
8
 
9
my_int v_my_int = 0;
10
volatile_my_int v_volatile_my_int = 1;
11
const_volatile_my_int v_const_volatile_my_int = 4;
12
 
13
int
14
main ()
15
{
16
  asm volatile ("" : : "r" (&v_my_int));
17
  asm volatile ("" : : "r" (&v_volatile_my_int));
18
  asm volatile ("" : : "r" (&v_const_volatile_my_int));
19
  return 0;
20
}
21
 
22
// { dg-final { scan-assembler-times "DIE\[^\n\r\]*DW_TAG_base_type" 1 } }

powered by: WebSVN 2.1.0

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