summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/regress/non-const1.C
blob: 7fc66a7ae81ddde756cd1eebb6d3986154b3b0b0 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/48015
// { dg-options -std=c++0x }

template <typename T> T f(T);
template <typename T> void g()
{
  int const c = f (1);
  int i = c - 0;
}