mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-27 21:40:34 +02:00
Merge remote-tracking branch 'origin/stable-2.0'
This commit is contained in:
commit
dee4e3ee3c
2 changed files with 18 additions and 21 deletions
|
@ -2234,18 +2234,15 @@
|
|||
#:opts %opts-w-format
|
||||
#:to 'assembly)))))
|
||||
|
||||
(pass-if "non-literal format string with forward declaration"
|
||||
(let ((w (call-with-warnings
|
||||
(lambda ()
|
||||
(compile '(begin
|
||||
(define (foo)
|
||||
(format #t (_ "~A ~A!") "hello" "world"))
|
||||
(define _ bar))
|
||||
#:opts %opts-w-format
|
||||
#:to 'assembly)))))
|
||||
(and (= (length w) 1)
|
||||
(number? (string-contains (car w)
|
||||
"non-literal format string")))))
|
||||
(pass-if "non-literal format string with (define _ gettext)"
|
||||
(null? (call-with-warnings
|
||||
(lambda ()
|
||||
(compile '(begin
|
||||
(define _ gettext)
|
||||
(define (foo)
|
||||
(format #t (_ "~A ~A!") "hello" "world")))
|
||||
#:opts %opts-w-format
|
||||
#:to 'assembly)))))
|
||||
|
||||
(pass-if "wrong format string"
|
||||
(let ((w (call-with-warnings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue