1\version "2.19.21" 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 7the given instrument definition does not exist." 8} 9 10\relative 11{ 12 c'4 13 \instrumentSwitch "bassClar" 14 c 15} 16