Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/debug/dwarf2/template-func-params-5.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
// Contributed by Dodji Seketeli <dodji@redhat.com> // Origin PR debug/30161 // { dg-options "-gdwarf-2 -dA" } // { dg-final { scan-assembler "DW_TAG_template_type_param" } } // { dg-final { scan-assembler "T\[^\n\r]* 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>();