]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/instrument-switch-invalid-warning.ly
Imported Upstream version 2.16.0
[lilypond.git] / input / regression / instrument-switch-invalid-warning.ly
diff --git a/input/regression/instrument-switch-invalid-warning.ly b/input/regression/instrument-switch-invalid-warning.ly
new file mode 100644 (file)
index 0000000..7a99c9d
--- /dev/null
@@ -0,0 +1,15 @@
+\version "2.16.0"
+#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "No such instrument: ~a") "bassClar")
+
+\header {
+  texidoc = "The @code{switchInstrument} music function prints a warning if
+the given instrument definition does not exist."
+}
+
+\relative
+{
+  c4
+  \instrumentSwitch "bassClar"
+  c
+}