diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/cond5.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/cond5.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/cond5.C b/gcc/testsuite/g++.dg/template/cond5.C new file mode 100644 index 000000000..bba31e6af --- /dev/null +++ b/gcc/testsuite/g++.dg/template/cond5.C @@ -0,0 +1,9 @@ +// PR c++/18464 + +struct A +{ + A(int); + operator void*() const; +}; + +template<int> void foo(const A& x) { 0 ? x : (x ? x : 0); } |