3 #(ly:set-option 'warning-as-error #f)
4 #(ly:expect-warning (ly:translate-cpp-warning-scheme "cannot find Voice `%s'") "not-existing-notes")
8 texidoc = "If lyrics are assigned to a non-existing voice, a warning should
9 be printed. However, if the lyrics context does not contain any lyrics, then
10 no warning should be printed."
16 \new Voice = "notes" {
19 % This should not give a warning (empty lyrics, existing voice):
20 \new Lyrics \lyricsto "notes" \lyricmode { }
21 % This should give a warning (non-existing voice):
22 \new Lyrics \lyricsto "not-existing-notes" \lyricmode { Test }
23 % This should NOT give a warning (non-existing voice, but also no lyrics):
24 \new Lyrics \lyricsto "not-existing-notes" \lyricmode { }