From 96541ee595d246720eaa4ea8bba72dac843898bb Mon Sep 17 00:00:00 2001 From: mmitchel Date: Mon, 27 Dec 2004 16:13:45 +0000 Subject: [PATCH] PR c++/19148 * g++.dg/expr/cond7.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92641 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/expr/cond7.C | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 gcc/testsuite/g++.dg/expr/cond7.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 266851f367d..d6366a46b20 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-12-27 Mark Mitchell + + PR c++/19148 + * g++.dg/expr/cond7.C: New test. + 2004-12-27 Paul Brook * gfortran.dg/g77/select_no_compile.f: Remove. diff --git a/gcc/testsuite/g++.dg/expr/cond7.C b/gcc/testsuite/g++.dg/expr/cond7.C new file mode 100644 index 00000000000..05e8eab4418 --- /dev/null +++ b/gcc/testsuite/g++.dg/expr/cond7.C @@ -0,0 +1,12 @@ +// PR c++/19148 + +struct QChar { + QChar (char c); + QChar (const QChar &); + unsigned short ucs; +}; + +void f(QChar *uc, unsigned short ch, QChar replacement) +{ + *uc++ = ((ch) ? QChar((1)) : replacement); +} -- 2.11.0