summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/stmtexpr.C
blob: 2d5ecbd1640e607c8868685e41ccf8f95ed19e30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do run  }
extern "C" void abort();

template <class T>
T f(T)
{
  T t = __extension__ ({ T j = 4; j + 3; });
  return t;
}


int main()
{
  if (f(3) != 7)
    abort();
}