summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/dwarf2/template-func-params-5.C
blob: c4fd8dc3e7702debadb48e23a08281cb4b09b2da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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>();