C-sharp major
Such passages may instead be notated with the use of double-sharp or double-flat accidentals, as in this example from Johann Sebastian Bach's "Well-Tempered Clavier", in G-sharp major (the overall key is C-sharp major):