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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [debug/] [dwarf2/] [pubnames-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/39706
3
// { dg-do compile { target *-*-darwin* } }
4
// { dg-options "-g -dA -fno-merge-debug-strings" }
5
//
6
// There should be one debug_pubnames section generated.
7
// { dg-final { scan-assembler-times "\.section\[\t \]\[^\n\]*debug_pubnames" 1 } }
8
//
9
// Then check of the presence of the names we are interested in.
10
// { dg-final { scan-assembler-times "\"main.0\"\[^\n\]*external name" 1 } }
11
// { dg-final { scan-assembler-times "\"ns::ns_x\[^\n\]*external name" 1 } }
12
// { dg-final { scan-assembler-times "\"y::y_x\[^\n\]*external name" 1 } }
13
 
14
namespace ns { int ns_x; }
15
class y { public: static int y_x; };
16
int y::y_x;
17
int main() { return ns::ns_x; }

powered by: WebSVN 2.1.0

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