☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
arg6.C
☽
☼
gcc/testsuite/g++.dg/template/arg6.C
code
plain
raw
1
// PR c++/33744
2
// { dg-do run }
3
4
template <bool B> struct A { bool b; A() : b(B) {}; };
5
A<bool(1)> a;
6
A<bool(1<2)> b;
7
A<(bool)(2>1)> c;
8
A<bool((2>1))> d;
9
A<bool(2>1)> e;
10
11
int
12
main ()
13
{
14
return (a.b && b.b && c.b && d.b && e.b) ? 0 : 1;
15
}