diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/expr/cond7.C | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 266851f..d6366a4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-12-27 Mark Mitchell <mark@codesourcery.com> + + PR c++/19148 + * g++.dg/expr/cond7.C: New test. + 2004-12-27 Paul Brook <paul@codesourcery.com> * 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 0000000..05e8eab --- /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); +} |