1
2\version "2.19.21"
3
4\header {
5  texidoc = "unpure-pure containers take two arguments: an unpure property and
6a pure property.  The pure property is evaluated (and cached) for all
7pure calculations, and the unpure is evaluated for all unpure calculations.
8In this regtest, there are three groups of two eighth notes.  In the first
9group, the second note should move to accommodate the flag, whereas it should
10not in the second group because it registers the flag as being higher. The
11flag, however, remains at the Y-offset dictated by ly:flag::calc-y-offset.
12In the third set of two 8th notes, the flag should be pushed up to a Y-offset
13of 8.
14"
15}
16
17\relative {
18  \stemUp \autoBeamOff
19  d'8 eis'
20  \once \override Flag.Y-offset =
21    #(ly:make-unpure-pure-container ly:flag::calc-y-offset 8)
22  d,8 eis'!
23  \once \override Flag.Y-offset = #8
24  d,8 eis'!
25}
26