OSDN Git Service

PR c++/54858
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / arg6.C
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 }