diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/arg6.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/arg6.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/arg6.C b/gcc/testsuite/g++.dg/template/arg6.C new file mode 100644 index 000000000..ef05abaee --- /dev/null +++ b/gcc/testsuite/g++.dg/template/arg6.C @@ -0,0 +1,15 @@ +// PR c++/33744 +// { dg-do run } + +template <bool B> struct A { bool b; A() : b(B) {}; }; +A<bool(1)> a; +A<bool(1<2)> b; +A<(bool)(2>1)> c; +A<bool((2>1))> d; +A<bool(2>1)> e; + +int +main () +{ + return (a.b && b.b && c.b && d.b && e.b) ? 0 : 1; +} |