From 64092f8bc204184c4a78740dab1625753d61318e Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Mon, 27 Dec 2004 16:13:45 +0000 Subject: re PR c++/19148 (ICE: gimplification failed) PR c++/19148 * g++.dg/expr/cond7.C: New test. From-SVN: r92641 --- 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 (limited to 'gcc') 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 + + 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 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); +} -- cgit v1.1