diff options
author | Enji Cooper <ngie@FreeBSD.org> | 2023-08-20 03:01:28 +0000 |
---|---|---|
committer | Enji Cooper <ngie@FreeBSD.org> | 2023-08-20 03:01:28 +0000 |
commit | a339cc353658ca6abbf6ad2919a9269210475b41 (patch) | |
tree | df25529c74ba6c91c393c1a9d41689544bc61bf6 | |
parent | 954363ea213f4f1731e69850d842ad433284ed66 (diff) |
Import new NetBSD tests snapshot2023.08.19-b34f66deb02e188104vendor/NetBSD/tests
This change pulls down the code from CVS trunk at the noted git
commit.
Obtained from: https://github.com/NetBSD/src (b34f66deb02e188104)
-rw-r--r-- | lib/libc/regex/data/att/README | 6 | ||||
-rw-r--r-- | usr.bin/xlint/lint1/check-expect.lua | 6 | ||||
-rw-r--r-- | usr.bin/xlint/lint1/msg_255.c | 34 |
3 files changed, 41 insertions, 5 deletions
diff --git a/lib/libc/regex/data/att/README b/lib/libc/regex/data/att/README index e2ee6f6ef705..86b72eb0479f 100644 --- a/lib/libc/regex/data/att/README +++ b/lib/libc/regex/data/att/README @@ -1,4 +1,8 @@ -AT&T test data from: http://www2.research.att.com/~gsf/testregex/ +AT&T test data from: + http://www2.research.att.com/~gsf/testregex/ + +The above link does not exist anymore; a copy of it is maintained at: + https://github.com/gburd/testregex Quoting from the page: testregex.c 2004-05-31 is the latest source for the AT&T Research diff --git a/usr.bin/xlint/lint1/check-expect.lua b/usr.bin/xlint/lint1/check-expect.lua index dde258973d4f..95ba60267cc8 100644 --- a/usr.bin/xlint/lint1/check-expect.lua +++ b/usr.bin/xlint/lint1/check-expect.lua @@ -1,5 +1,5 @@ #! /usr/bin/lua --- $NetBSD: check-expect.lua,v 1.7 2023/07/08 11:03:00 rillig Exp $ +-- $NetBSD: check-expect.lua,v 1.8 2023/08/11 04:27:49 rillig Exp $ --[[ @@ -62,7 +62,7 @@ end -- -- example return values: -- { --- ["file.c(18)"] = {"invalid argument 'a'", "invalid argument 'b'"}, +-- ["file.c(18)"] = {"syntax error 'a' [249]", "syntax error 'b' [249]"}, -- ["file.c(23)"] = {"not a constant expression [123]"}, -- }, -- { "file.c(18)", "file.c(23)" } @@ -132,7 +132,7 @@ local function load_exp(exp_fname) local messages = {} for exp_lineno, line in ipairs(lines) do - for location, message in line:gmatch("(%S+%(%d+%)): (.+)$") do + for location, message in line:gmatch("(.+%(%d+%)): (.+)$") do table.insert(messages, { exp_lineno = exp_lineno, location = location, diff --git a/usr.bin/xlint/lint1/msg_255.c b/usr.bin/xlint/lint1/msg_255.c index bde80cc97e3c..1a7f60f8d7b0 100644 --- a/usr.bin/xlint/lint1/msg_255.c +++ b/usr.bin/xlint/lint1/msg_255.c @@ -1,13 +1,45 @@ -/* $NetBSD: msg_255.c,v 1.5 2023/07/09 11:01:27 rillig Exp $ */ +/* $NetBSD: msg_255.c,v 1.6 2023/08/11 04:27:49 rillig Exp $ */ # 3 "msg_255.c" // Test for message: undefined or invalid '#' directive [255] /* lint1-extra-flags: -X 351 */ +/* expect+1: warning: undefined or invalid '#' directive [255] */ +# + +/* expect+1: warning: undefined or invalid '#' directive [255] */ +#pragma + #pragma once /* expect+1: warning: undefined or invalid '#' directive [255] */ #fatal_error +/* expect+1: warning: undefined or invalid '#' directive [255] */ +# ident "obsolete" + +/* expect+1: warning: undefined or invalid '#' directive [255] */ +#1 + +// Sets the line number of the current file. +# 2 + +// Switch back to the main file. +# 30 "msg_255.c" + +/* expect+1: warning: undefined or invalid '#' directive [255] */ +# 3/ + +/* expect+1: warning: undefined or invalid '#' directive [255] */ +# 4 / + +/* expect+1: warning: undefined or invalid '#' directive [255] */ +# 5 "unfinished + +// An empty string means standard input; tabs may be used for spacing. +# 6 "" + +# 44 "msg_255.c" + int dummy; |