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/] [template-func-params-6.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/30161
3
// { dg-options "-g -dA -fno-merge-debug-strings" }
4
// { dg-final { scan-assembler-times "DW_TAG_GNU_template_template_param" 2 } }
5
// { dg-final { scan-assembler-times "\"vector.0\".*?DW_AT_GNU_template_name" 1 } }
6
// { dg-final { scan-assembler-times ".ascii \"U.0\".*?DW_AT_name" 1 } }
7
 
8
template 
9
struct vector_base
10
{
11
 
12
    static int get_sizeof_t()
13
    {
14
      return 0;
15
    }
16
};
17
 
18
template 
19
struct vector : public vector_base
20
{
21
    static int get_sizeof_t()
22
    {
23
        return sizeof (T);
24
    }
25
    T member1;
26
    T member2;
27
};
28
 
29
template