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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [debug/] [dwarf2/] [namespace-1.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
// Contributed by Dodji Seketeli 
2
// Origin PR debug/41170
3
// { dg-options "-g -dA -fno-merge-debug-strings -gno-strict-dwarf" }
4
//
5
// We want to test that there is a DW_TAG_namespace DIE DW_AT_name is set
6
// to "not_emitted". That namespace die has a child DW_TAG_typedef DIE
7
// which DW_AT_name is the null terminated string "T".
8
// { dg-final { scan-assembler-times "DIE +\\(\[^\n\]*\\) DW_TAG_namespace" 1 } }
9
// { dg-final { scan-assembler-times "\"not_emitted.0\"\[^\n\]*DW_AT_name" 1 } }
10
// { dg-final { scan-assembler-times "DIE +\\(\[^\n\]*\\) DW_TAG_typedef" 1 } }
11
// { dg-final { scan-assembler-times "\.ascii \"T.0\"\[\t \]+\[^\n\]*DW_AT_name" 1 } }
12
 
13
struct strukt
14
{
15
  int m;
16
};
17
 
18
namespace not_emitted
19
{
20
  typedef strukt T;
21
}
22
 
23
int
24
main()
25
{
26
  not_emitted::T t;
27
  t.m = 0;
28
  return 0;
29
}
30
 

powered by: WebSVN 2.1.0

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