OSDN Git Service

PR c++/19148
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Dec 2004 16:13:45 +0000 (16:13 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Dec 2004 16:13:45 +0000 (16:13 +0000)
* 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
gcc/testsuite/g++.dg/expr/cond7.C [new file with mode: 0644]

index 266851f..d6366a4 100644 (file)
@@ -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 (file)
index 0000000..05e8eab
--- /dev/null
@@ -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);
+}