Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / template / arg6.C
blobef05abaeedaef225212b9ef2992156f00c67d7ce
1 // PR c++/33744
2 // { dg-do run }
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;
11 int
12 main ()
14   return (a.b && b.b && c.b && d.b && e.b) ? 0 : 1;