diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2024-11-07 09:22:19 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2024-11-07 09:22:19 +0000 |
commit | f9d6716b4ce64e02f4afaee837afa9935c2b9a41 (patch) | |
tree | 9718f2fe48cb5d26c25864a35db9e4397862931d /regress | |
parent | 8019a4a1223de88524d132947624e7c7db2aab63 (diff) |
Regression for parsing multi-line strings with comments.
From Christian Ludwig
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.sbin/btrace/printf.bt | 5 | ||||
-rw-r--r-- | regress/usr.sbin/btrace/printf.ok | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/regress/usr.sbin/btrace/printf.bt b/regress/usr.sbin/btrace/printf.bt index f025d0bbc27..72d484f3d97 100644 --- a/regress/usr.sbin/btrace/printf.bt +++ b/regress/usr.sbin/btrace/printf.bt @@ -1,4 +1,9 @@ BEGIN { $c = 0x41; // 'A' printf("%c%c%c\n", $c, 0x41, 65); + + $t = "two " // multi-line string + "times" /* with comments */ ""; + printf("%s multi-" + "line\n", $t); } diff --git a/regress/usr.sbin/btrace/printf.ok b/regress/usr.sbin/btrace/printf.ok index 43d5a8ed6ef..663f16707e0 100644 --- a/regress/usr.sbin/btrace/printf.ok +++ b/regress/usr.sbin/btrace/printf.ok @@ -1 +1,2 @@ AAA +two times multi-line |