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-6.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 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\"\[^\n\]*DW_AT_GNU_template_name" 1 } }
6
// { dg-final { scan-assembler-times ".ascii \"U.0\"\[^\n\]*DW_AT_name" 1 } }
7
 
8
template 
9
struct vector_base
10
{
11
    T tab[3 + 1];
12
    static int get_sizeof_t()
13
    {
14
      return sizeof (tab);
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