Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/regress/usr.bin/xlint/lint1 add a regression test for compou...



details:   https://anonhg.NetBSD.org/src/rev/c84466168f36
branches:  trunk
changeset: 538563:c84466168f36
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Oct 22 18:15:52 2002 +0000

description:
add a regression test for compound literals.

diffstat:

 regress/usr.bin/xlint/lint1/test9.c |  11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r bfaca82730b4 -r c84466168f36 regress/usr.bin/xlint/lint1/test9.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/usr.bin/xlint/lint1/test9.c       Tue Oct 22 18:15:52 2002 +0000
@@ -0,0 +1,11 @@
+/* compound literals */
+
+struct p {
+       short a, b, c, d;
+};
+
+foo()
+{
+       struct p me = (struct p) {1, 2, 3, 4};
+       me.a = me.b;
+}



Home | Main Index | Thread Index | Old Index