summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/cond7.C
blob: ce1c77e593ba19a45bc3e3f494cfb7fedf3886f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/34270
// { dg-do compile }
// { dg-options "" }

void foo ()
{
  __typeof__ (0 ?: 0) x;
  __decltype (0 ?: 0) y;
}

template<int> void bar ()
{
  __typeof__ (0 ?: 0) x;
  __decltype (0 ?: 0) y;
}