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 lint: add common header for all tests



details:   https://anonhg.NetBSD.org/src/rev/357037b6498d
branches:  trunk
changeset: 959098:357037b6498d
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Jan 31 14:39:31 2021 +0000

description:
lint: add common header for all tests

For those tests that didn't use GCC-style line markers such as "# 2",
the line numbers of the diagnostics stay the same.  This is purely
conincidental.  Before, the 3 lines came from lint's built-in
definitions (see 'builtins' in main1.c), and line number counting
continued as if nothing had happened, making the first line of the
actual file line 4.  These 3 built-in lines are now replaced with 3
lines of file header.

diffstat:

 tests/usr.bin/xlint/lint1/d_alignof.c                    |  3 +++
 tests/usr.bin/xlint/lint1/d_bltinoffsetof.c              |  2 ++
 tests/usr.bin/xlint/lint1/d_c99_anon_struct.c            |  3 +++
 tests/usr.bin/xlint/lint1/d_c99_anon_union.c             |  3 +++
 tests/usr.bin/xlint/lint1/d_c99_complex_num.c            |  3 +++
 tests/usr.bin/xlint/lint1/d_c99_complex_split.c          |  3 +++
 tests/usr.bin/xlint/lint1/d_c99_compound_literal_comma.c |  3 +++
 tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt.c       |  3 +++
 tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt2.c      |  3 +++
 tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt3.c      |  3 +++
 tests/usr.bin/xlint/lint1/d_c99_flex_array_packed.c      |  4 +++-
 tests/usr.bin/xlint/lint1/d_c99_for_loops.c              |  3 +++
 tests/usr.bin/xlint/lint1/d_c99_func.c                   |  3 +++
 tests/usr.bin/xlint/lint1/d_c99_nested_struct.c          |  3 +++
 tests/usr.bin/xlint/lint1/d_c99_recursive_init.c         |  3 +++
 tests/usr.bin/xlint/lint1/d_c99_struct_init.c            |  3 +++
 tests/usr.bin/xlint/lint1/d_c99_union_cast.c             |  3 +++
 tests/usr.bin/xlint/lint1/d_c99_union_cast.exp           |  2 +-
 tests/usr.bin/xlint/lint1/d_c99_union_init1.c            |  3 +++
 tests/usr.bin/xlint/lint1/d_c99_union_init2.c            |  3 +++
 tests/usr.bin/xlint/lint1/d_c99_union_init3.c            |  3 +++
 tests/usr.bin/xlint/lint1/d_c99_union_init4.c            |  3 +++
 tests/usr.bin/xlint/lint1/d_c9x_array_init.c             |  3 +++
 tests/usr.bin/xlint/lint1/d_c9x_recursive_init.c         |  3 +++
 tests/usr.bin/xlint/lint1/d_cast_fun_array_param.c       |  2 ++
 tests/usr.bin/xlint/lint1/d_cast_init.c                  |  3 +++
 tests/usr.bin/xlint/lint1/d_cast_init2.c                 |  3 +++
 tests/usr.bin/xlint/lint1/d_cast_lhs.c                   |  3 +++
 tests/usr.bin/xlint/lint1/d_cast_typeof.c                |  3 ++-
 tests/usr.bin/xlint/lint1/d_compound_literals1.c         |  3 +++
 tests/usr.bin/xlint/lint1/d_compound_literals2.c         |  3 +++
 tests/usr.bin/xlint/lint1/d_constant_conv1.c             |  3 +++
 tests/usr.bin/xlint/lint1/d_constant_conv1.exp           |  2 +-
 tests/usr.bin/xlint/lint1/d_constant_conv2.c             |  3 +++
 tests/usr.bin/xlint/lint1/d_constant_conv2.exp           |  2 +-
 tests/usr.bin/xlint/lint1/d_cvt_constant.c               |  3 +++
 tests/usr.bin/xlint/lint1/d_cvt_constant.exp             |  4 ++--
 tests/usr.bin/xlint/lint1/d_cvt_in_ternary.c             |  3 +++
 tests/usr.bin/xlint/lint1/d_ellipsis_in_switch.c         |  3 +++
 tests/usr.bin/xlint/lint1/d_gcc_compound_statements1.c   |  3 +++
 tests/usr.bin/xlint/lint1/d_gcc_compound_statements2.c   |  3 +++
 tests/usr.bin/xlint/lint1/d_gcc_compound_statements3.c   |  3 +++
 tests/usr.bin/xlint/lint1/d_gcc_extension.c              |  3 +++
 tests/usr.bin/xlint/lint1/d_gcc_extension.exp            |  4 ++--
 tests/usr.bin/xlint/lint1/d_gcc_func.c                   |  3 +++
 tests/usr.bin/xlint/lint1/d_gcc_variable_array_init.c    |  3 +++
 tests/usr.bin/xlint/lint1/d_incorrect_array_size.c       |  3 +++
 tests/usr.bin/xlint/lint1/d_incorrect_array_size.exp     |  2 +-
 tests/usr.bin/xlint/lint1/d_init_pop_member.c            |  3 ++-
 tests/usr.bin/xlint/lint1/d_init_pop_member.exp          |  4 ++--
 tests/usr.bin/xlint/lint1/d_long_double_int.c            |  3 +++
 tests/usr.bin/xlint/lint1/d_long_double_int.exp          |  2 +-
 tests/usr.bin/xlint/lint1/d_nested_structs.c             |  3 +++
 tests/usr.bin/xlint/lint1/d_nolimit_init.c               |  3 +++
 tests/usr.bin/xlint/lint1/d_packed_structs.c             |  3 +++
 tests/usr.bin/xlint/lint1/d_return_type.c                |  3 ++-
 tests/usr.bin/xlint/lint1/d_return_type.exp              |  2 +-
 tests/usr.bin/xlint/lint1/d_shift_to_narrower_type.c     |  3 +++
 tests/usr.bin/xlint/lint1/d_struct_init_nested.c         |  3 ++-
 tests/usr.bin/xlint/lint1/d_struct_init_nested.exp       |  8 ++++----
 tests/usr.bin/xlint/lint1/d_type_conv1.c                 |  3 +++
 tests/usr.bin/xlint/lint1/d_type_conv1.exp               |  2 +-
 tests/usr.bin/xlint/lint1/d_type_conv2.c                 |  3 +++
 tests/usr.bin/xlint/lint1/d_type_conv2.exp               |  2 +-
 tests/usr.bin/xlint/lint1/d_type_conv3.c                 |  3 +++
 tests/usr.bin/xlint/lint1/d_type_conv3.exp               |  4 ++--
 tests/usr.bin/xlint/lint1/d_type_question_colon.c        |  3 +++
 tests/usr.bin/xlint/lint1/d_typefun.c                    |  3 +++
 tests/usr.bin/xlint/lint1/d_typename_as_var.c            |  3 +++
 tests/usr.bin/xlint/lint1/d_zero_sized_arrays.c          |  3 +++
 70 files changed, 185 insertions(+), 25 deletions(-)

diffs (truncated from 667 to 300 lines):

diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_alignof.c
--- a/tests/usr.bin/xlint/lint1/d_alignof.c     Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_alignof.c     Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_alignof.c,v 1.2 2021/01/31 14:39:31 rillig Exp $     */
+# 3 "d_alignof.c"
+
 /* __alignof__ */
 int
 main(void)
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_bltinoffsetof.c
--- a/tests/usr.bin/xlint/lint1/d_bltinoffsetof.c       Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_bltinoffsetof.c       Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,5 @@
+/*     $NetBSD: d_bltinoffsetof.c,v 1.2 2021/01/31 14:39:31 rillig Exp $       */
+# 3 "d_bltinoffsetof.c"
 
 struct foo {
        int a;
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c99_anon_struct.c
--- a/tests/usr.bin/xlint/lint1/d_c99_anon_struct.c     Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_anon_struct.c     Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_c99_anon_struct.c,v 1.3 2021/01/31 14:39:31 rillig Exp $     */
+# 3 "d_c99_anon_struct.c"
+
 /* Anonymous struct test */
 
 typedef int type;
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c99_anon_union.c
--- a/tests/usr.bin/xlint/lint1/d_c99_anon_union.c      Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_anon_union.c      Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_c99_anon_union.c,v 1.2 2021/01/31 14:39:31 rillig Exp $      */
+# 3 "d_c99_anon_union.c"
+
 /* struct with only anonymous members */
 
 struct foo {
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c99_complex_num.c
--- a/tests/usr.bin/xlint/lint1/d_c99_complex_num.c     Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_complex_num.c     Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_c99_complex_num.c,v 1.2 2021/01/31 14:39:31 rillig Exp $     */
+# 3 "d_c99_complex_num.c"
+
 double cabs(double _Complex);
 
 double cabs(double _Complex foo)
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c99_complex_split.c
--- a/tests/usr.bin/xlint/lint1/d_c99_complex_split.c   Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_complex_split.c   Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_c99_complex_split.c,v 1.3 2021/01/31 14:39:31 rillig Exp $   */
+# 3 "d_c99_complex_split.c"
+
 int b(double a) {
        return a == 0;
 }
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c99_compound_literal_comma.c
--- a/tests/usr.bin/xlint/lint1/d_c99_compound_literal_comma.c  Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_compound_literal_comma.c  Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_c99_compound_literal_comma.c,v 1.2 2021/01/31 14:39:31 rillig Exp $  */
+# 3 "d_c99_compound_literal_comma.c"
+
 struct bintime {
        unsigned long long sec;
        unsigned long long frac;
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt.c
--- a/tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt.c        Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt.c        Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_c99_decls_after_stmt.c,v 1.2 2021/01/31 14:39:31 rillig Exp $        */
+# 3 "d_c99_decls_after_stmt.c"
+
 void sample(void)
 {
   int i = 0; i += 1;
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt2.c
--- a/tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt2.c       Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt2.c       Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_c99_decls_after_stmt2.c,v 1.2 2021/01/31 14:39:31 rillig Exp $       */
+# 3 "d_c99_decls_after_stmt2.c"
+
 typedef int int_t;
 int main(void) {
 int i = 0; i += 1;
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt3.c
--- a/tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt3.c       Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt3.c       Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_c99_decls_after_stmt3.c,v 1.2 2021/01/31 14:39:31 rillig Exp $       */
+# 3 "d_c99_decls_after_stmt3.c"
+
 void sample(int i)
 {
   i += 1;
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c99_flex_array_packed.c
--- a/tests/usr.bin/xlint/lint1/d_c99_flex_array_packed.c       Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_flex_array_packed.c       Sun Jan 31 14:39:31 2021 +0000
@@ -1,6 +1,8 @@
+/*     $NetBSD: d_c99_flex_array_packed.c,v 1.2 2021/01/31 14:39:31 rillig Exp $       */
+# 3 "d_c99_flex_array_packed.c"
+
 /* Allow packed c99 flexible arrays */
 struct {
        int x;
        char y[0];
 } __packed foo;
-
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c99_for_loops.c
--- a/tests/usr.bin/xlint/lint1/d_c99_for_loops.c       Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_for_loops.c       Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_c99_for_loops.c,v 1.3 2021/01/31 14:39:31 rillig Exp $       */
+# 3 "d_c99_for_loops.c"
+
 /* c99 for loops */
 extern void foo(int);
 
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c99_func.c
--- a/tests/usr.bin/xlint/lint1/d_c99_func.c    Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_func.c    Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_c99_func.c,v 1.2 2021/01/31 14:39:31 rillig Exp $    */
+# 3 "d_c99_func.c"
+
 /* C99 __func__ */
 
 void
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c99_nested_struct.c
--- a/tests/usr.bin/xlint/lint1/d_c99_nested_struct.c   Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_nested_struct.c   Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_c99_nested_struct.c,v 1.2 2021/01/31 14:39:31 rillig Exp $   */
+# 3 "d_c99_nested_struct.c"
+
 /* C99 nested struct init with named and non-named initializers */
 typedef struct pthread_mutex_t {
  unsigned int ptm_magic;
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c99_recursive_init.c
--- a/tests/usr.bin/xlint/lint1/d_c99_recursive_init.c  Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_recursive_init.c  Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_c99_recursive_init.c,v 1.3 2021/01/31 14:39:31 rillig Exp $  */
+# 3 "d_c99_recursive_init.c"
+
 /* C99 recursive struct/union initialization */
 struct top {
        int i;
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c99_struct_init.c
--- a/tests/usr.bin/xlint/lint1/d_c99_struct_init.c     Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_struct_init.c     Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_c99_struct_init.c,v 1.3 2021/01/31 14:39:31 rillig Exp $     */
+# 3 "d_c99_struct_init.c"
+
 /* C99 struct initialization */
 struct {
        int i;
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c99_union_cast.c
--- a/tests/usr.bin/xlint/lint1/d_c99_union_cast.c      Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_union_cast.c      Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_c99_union_cast.c,v 1.2 2021/01/31 14:39:31 rillig Exp $      */
+# 3 "d_c99_union_cast.c"
+
 /* union cast */
 
 struct bar {
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c99_union_cast.exp
--- a/tests/usr.bin/xlint/lint1/d_c99_union_cast.exp    Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_union_cast.exp    Sun Jan 31 14:39:31 2021 +0000
@@ -1,1 +1,1 @@
-(18): warning: a unused in function foo [192]
+d_c99_union_cast.c(18): warning: a unused in function foo [192]
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c99_union_init1.c
--- a/tests/usr.bin/xlint/lint1/d_c99_union_init1.c     Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_union_init1.c     Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_c99_union_init1.c,v 1.3 2021/01/31 14:39:31 rillig Exp $     */
+# 3 "d_c99_union_init1.c"
+
 /* C99 union initialization */
 union {
        int i;
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c99_union_init2.c
--- a/tests/usr.bin/xlint/lint1/d_c99_union_init2.c     Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_union_init2.c     Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_c99_union_init2.c,v 1.3 2021/01/31 14:39:31 rillig Exp $     */
+# 3 "d_c99_union_init2.c"
+
 /* C99 union initialization */
 union {
        int i[10];
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c99_union_init3.c
--- a/tests/usr.bin/xlint/lint1/d_c99_union_init3.c     Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_union_init3.c     Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_c99_union_init3.c,v 1.3 2021/01/31 14:39:31 rillig Exp $     */
+# 3 "d_c99_union_init3.c"
+
 /* C99 union initialization */
 struct {
        int i[10];
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c99_union_init4.c
--- a/tests/usr.bin/xlint/lint1/d_c99_union_init4.c     Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_union_init4.c     Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_c99_union_init4.c,v 1.3 2021/01/31 14:39:31 rillig Exp $     */
+# 3 "d_c99_union_init4.c"
+
 /* test .data.l[x] */
 typedef struct {
        int type;
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c9x_array_init.c
--- a/tests/usr.bin/xlint/lint1/d_c9x_array_init.c      Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c9x_array_init.c      Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_c9x_array_init.c,v 1.2 2021/01/31 14:39:31 rillig Exp $      */
+# 3 "d_c9x_array_init.c"
+
 /* C9X array initializers */
 int foo[256] = {
        [2] = 1,
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_c9x_recursive_init.c
--- a/tests/usr.bin/xlint/lint1/d_c9x_recursive_init.c  Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c9x_recursive_init.c  Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_c9x_recursive_init.c,v 1.2 2021/01/31 14:39:31 rillig Exp $  */
+# 3 "d_c9x_recursive_init.c"
+
 /* C9X struct/union member init, with nested union and trailing member */
 union node {
        void *next;
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_cast_fun_array_param.c
--- a/tests/usr.bin/xlint/lint1/d_cast_fun_array_param.c        Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_cast_fun_array_param.c        Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,5 @@
+/*     $NetBSD: d_cast_fun_array_param.c,v 1.2 2021/01/31 14:39:31 rillig Exp $        */
+# 3 "d_cast_fun_array_param.c"
 
 static void f(void *b[4]) {
        (void)&b;
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_cast_init.c
--- a/tests/usr.bin/xlint/lint1/d_cast_init.c   Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_cast_init.c   Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_cast_init.c,v 1.3 2021/01/31 14:39:31 rillig Exp $   */
+# 3 "d_cast_init.c"
+
 /* cast initialization */
 
 typedef unsigned char u_char;
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_cast_init2.c
--- a/tests/usr.bin/xlint/lint1/d_cast_init2.c  Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_cast_init2.c  Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_cast_init2.c,v 1.2 2021/01/31 14:39:31 rillig Exp $  */
+# 3 "d_cast_init2.c"
+
 /* cast initialization as the rhs of a - operand */
 struct sockaddr_dl {
        char sdl_data[2];
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_cast_lhs.c
--- a/tests/usr.bin/xlint/lint1/d_cast_lhs.c    Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_cast_lhs.c    Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_cast_lhs.c,v 1.2 2021/01/31 14:39:31 rillig Exp $    */
+# 3 "d_cast_lhs.c"
+
 /* pointer casts are valid lhs lvalues */
 struct sockaddr { };
 void
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_cast_typeof.c
--- a/tests/usr.bin/xlint/lint1/d_cast_typeof.c Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_cast_typeof.c Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,5 @@
+/*     $NetBSD: d_cast_typeof.c,v 1.3 2021/01/31 14:39:31 rillig Exp $ */
+# 3 "d_cast_typeof.c"
 
 struct foo {
        char list;
@@ -11,4 +13,3 @@
            ((char *)&((typeof(hole))0)->list) :
            ((char *)&((typeof(*hole) *)0)->list);
 }
-
diff -r ed1df3082df6 -r 357037b6498d tests/usr.bin/xlint/lint1/d_compound_literals1.c
--- a/tests/usr.bin/xlint/lint1/d_compound_literals1.c  Sun Jan 31 14:17:48 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_compound_literals1.c  Sun Jan 31 14:39:31 2021 +0000
@@ -1,3 +1,6 @@
+/*     $NetBSD: d_compound_literals1.c,v 1.2 2021/01/31 14:39:31 rillig Exp $  */
+# 3 "d_compound_literals1.c"
+
 /* compound literals */
 



Home | Main Index | Thread Index | Old Index