URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.dg/] [debug/] [dwarf2/] [template-func-params-5.C] - Rev 301
Go to most recent revision | Compare with Previous | Blame | View Log
// Contributed by Dodji Seketeli <dodji@redhat.com>
// Origin PR debug/30161
// { dg-options "-g -dA" }
// { dg-final { scan-assembler "DW_TAG_template_type_param" } }
// { dg-final { scan-assembler "T.*DW_AT_name" } }
template <class T>
struct vector
{
int size;
vector () : size (0)
{
}
};
template<template <class T> class U>
int
bar()
{
U<int> u;
return u.size;
}
vector<int> v;
int j = bar<vector>();
Go to most recent revision | Compare with Previous | Blame | View Log