summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/cond5.C
blob: bba31e6afb282408557eae0d0a3bbc457673bd42 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/18464

struct A
{
  A(int);
  operator void*() const;
};

template<int> void foo(const A& x) { 0 ? x : (x ? x : 0); }