aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/cond5.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/template/cond5.C')
-rw-r--r--gcc-4.9/gcc/testsuite/g++.dg/template/cond5.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/template/cond5.C b/gcc-4.9/gcc/testsuite/g++.dg/template/cond5.C
new file mode 100644
index 000000000..bba31e6af
--- /dev/null
+++ b/gcc-4.9/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); }