summaryrefslogtreecommitdiff
path: root/test/include1.rl
blob: 30145de727ad67ffb66a274dc0098060db18179f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * @LANG: c
 * @IGNORE: yes
 *
 * Provides definitions for include tests.
 */

%%{
	machine include_test_1;

	action A {printf(" a1");}
	action B {printf(" b1");}

	action NonRef1 {printf(" nr1");}

	a1 = 'a' @A;
	b1 = 'b' @B;
}%%

%%{
	machine include_test_2;

	action NonRef2 {printf(" nr2");}

	a2 = 'a' @{printf(" a2");};
	b2 = 'b' @{printf(" b2");};
}%%