summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/operator13.C
blob: 1967c910e68851205a96ce00da14d12633596ece (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/50961

template < class > void foo ();

bool b1 = !foo<void>;
bool b2 = foo<void> ? true : false;

void bar()
{
  if (foo<void>)
    ;
}