2 /* Testcase by Martin Michlmayr <tbm@cyrius.com> */
4 /* { dg-do compile } */
5 /* { dg-options "-O3 --param max-partial-antic-length=0" } */
7 static int pendingCommand
;
8 static int currentModifiers
;
11 int (*updateKeys
) (int *keyPressed
);
14 static const ProtocolOperations
*protocol
;
15 brl_readCommand (void)
17 unsigned long int keys
;
20 unsigned char routingKeys
[200];
22 signed char rightVerticalSensor
;
23 if (pendingCommand
!= (-1))
27 if (!protocol
->updateKeys (&keyPressed
))
29 if (rightVerticalSensor
>= 0)
31 if ((routingKeyCount
== 0) && keys
)
35 doChord
:switch (keys
);
53 if (currentModifiers
& (0X0010 | 0X0200))
55 if (currentModifiers
& 0X0040)
57 if (currentModifiers
& 0X0100)
59 if (currentModifiers
& 0X0400)
61 if (currentModifiers
& 0X0800)
64 unsigned char key1
= routingKeys
[0];
70 currentModifiers
|= 0X0010;