OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [debug/] [dwarf2/] [pubnames-1.C] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// Contributed by Dodji Seketeli 
2
// Origin PR debug/39706
3
// { dg-options "-g -dA -fno-merge-debug-strings" }
4
// { dg-do compile }
5
//
6
// There should be one debug_pubnames section generated.
7
// On Darwin though, there is also a label pointing at the begining of the
8
// debug_pubnames section. The assembly code of that label adds an occurence
9
// of section declaration assembly. So on Darwin, we need to check for two
10
// occurences of the debug_pubnames section declaration.
11
// { dg-final { scan-assembler-times "\.section\[\t \].*?debug_pubnames" 1 { target { ! *-*-darwin* } } } }
12
// { dg-final { scan-assembler-times "\.section\[\t \].*?debug_pubnames" 2 { target { *-*-darwin* } } } }
13
//
14
// Then check of the presence of the names we are interested in.
15
// { dg-final { scan-assembler-times "\"main.0\".*external name" 1 } }
16
// { dg-final { scan-assembler-times "\"ns::ns_x.*external name" 1 } }
17
// { dg-final { scan-assembler-times "\"y::y_x.*external name" 1 } }
18
 
19
namespace ns { int ns_x; }
20
class y { public: static int y_x; };
21
int y::y_x;
22
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.