]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/instrument-switch-invalid-warning.ly
c0ad386d150acf6e4bef036fdf5607b66fe1c391
[lilypond.git] / input / regression / instrument-switch-invalid-warning.ly
1 \version "2.14.0"
2 #(ly:set-option 'warning-as-error #f)
3 #(ly:expect-warning (_ "No such instrument: ~a") "bassClar")
4
5 \header {
6   texidoc = "The @code{switchInstrument} music function prints a warning if
7 the given instrument definition does not exist."
8 }
9
10 \relative
11 {
12   c4
13   \instrumentSwitch "bassClar"
14   c
15 }