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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [debug/] [dwarf2/] [template-params-8.C] - Blame information for rev 698

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

Line No. Rev Author Line
1 693 jeremybenn
// Origin PR debug/46955
2
// { dg-options "-g -dA" }
3
// { dg-do compile }
4
 
5
struct S { int f; };
6
template struct T { };
7
T<&S::f> v;
8
 
9
// For the type of v, we should have this DWARF generated:
10
//      .uleb128 0x6    # (DIE (0x57) DW_TAG_template_value_param)
11
//      .ascii "MP\0"   # DW_AT_name
12
//      .long   0x61    # DW_AT_type
13
//      .byte   0        # DW_AT_const_value
14
// So let's look for that.
15
// { dg-final { scan-assembler-times "\[^\n\r\]*DIE \\(\[^\n\r\]*\\) DW_TAG_template_value_param\[^\n\r\]*\[\n\r\]{1,2}\[^\n\r\]*DW_AT_name\[\n\r\]{1,2}\[^\n\r\]*DW_AT_type\[\n\r\]{1,2}\[^\n\r\]*DW_AT_const_value\[\n\r\]{1,2}" 1 } }

powered by: WebSVN 2.1.0

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