Source-Changes-HG archive

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

[src/trunk]: src/tests/usr.bin/xlint/lint1 add one more test



details:   https://anonhg.NetBSD.org/src/rev/0c29c1883718
branches:  trunk
changeset: 808272:0c29c1883718
user:      christos <christos%NetBSD.org@localhost>
date:      Mon May 11 17:21:32 2015 +0000

description:
add one more test

diffstat:

 tests/usr.bin/xlint/lint1/Makefile                        |   3 ++-
 tests/usr.bin/xlint/lint1/d_c99_compound_litteral_comma.c |  14 ++++++++++++++
 2 files changed, 16 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r 452042770931 -r 0c29c1883718 tests/usr.bin/xlint/lint1/Makefile
--- a/tests/usr.bin/xlint/lint1/Makefile        Mon May 11 17:20:06 2015 +0000
+++ b/tests/usr.bin/xlint/lint1/Makefile        Mon May 11 17:21:32 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2015/04/03 21:37:26 christos Exp $
+# $NetBSD: Makefile,v 1.7 2015/05/11 17:21:32 christos Exp $
 
 NOMAN=         # defined
 
@@ -12,6 +12,7 @@
 FILES+=                d_alignof.c
 FILES+=                d_c99_complex_num.c
 FILES+=                d_c99_complex_split.c
+FILES+=                d_c99_compound_literal_comma.c
 FILES+=                d_c99_decls_after_stmt.c
 FILES+=                d_c99_decls_after_stmt2.c
 FILES+=                d_c99_decls_after_stmt3.c
diff -r 452042770931 -r 0c29c1883718 tests/usr.bin/xlint/lint1/d_c99_compound_litteral_comma.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_compound_litteral_comma.c Mon May 11 17:21:32 2015 +0000
@@ -0,0 +1,14 @@
+struct bintime {
+       unsigned long long sec;
+       unsigned long long frac;
+};
+
+struct bintime
+us2bintime(unsigned long long us)
+{
+
+       return (struct bintime) {
+               .sec = us / 1000000U,
+               .frac = (((us % 1000000U) >> 32)/1000000U) >> 32,
+       };
+}



Home | Main Index | Thread Index | Old Index