1*c85f09ccSJohn Levon static void a(void) __attribute__((context));		// KO
2*c85f09ccSJohn Levon static void b(void) __attribute__((context()));		// KO
3*c85f09ccSJohn Levon static void c(void) __attribute__((context 1));		// KO
4*c85f09ccSJohn Levon static void d(void) __attribute__((context 1,2));	// KO
5*c85f09ccSJohn Levon static void e(void) __attribute__((context (1)));	// !!!!
6*c85f09ccSJohn Levon static void f(void) __attribute__((context(0)));	// !!!!
7*c85f09ccSJohn Levon static void g(void) __attribute__((context(0,1,2,3)));	// KO
8*c85f09ccSJohn Levon 
9*c85f09ccSJohn Levon static void h(void) __attribute__((context (1,2)));	// OK
10*c85f09ccSJohn Levon static void i(void) __attribute__((context(0,1)));	// OK
11*c85f09ccSJohn Levon static void j(void) __attribute__((context(0,1,2)));	// OK
12*c85f09ccSJohn Levon 
13*c85f09ccSJohn Levon extern int u, v;
14*c85f09ccSJohn Levon static void x(void) __attribute__((context(0,1,v)));
15*c85f09ccSJohn Levon static void y(void) __attribute__((context(0,u,1)));
16*c85f09ccSJohn Levon static void z(void) __attribute__((context(0,u)));
17*c85f09ccSJohn Levon 
18*c85f09ccSJohn Levon /*
19*c85f09ccSJohn Levon  * check-name: attr-context
20*c85f09ccSJohn Levon  *
21*c85f09ccSJohn Levon  * check-error-start
22*c85f09ccSJohn Levon attr-context.c:1:43: error: Expected ( after context attribute
23*c85f09ccSJohn Levon attr-context.c:1:43: error: got )
24*c85f09ccSJohn Levon attr-context.c:2:44: error: Expected , after context 1st argument
25*c85f09ccSJohn Levon attr-context.c:2:44: error: got )
26*c85f09ccSJohn Levon attr-context.c:3:44: error: Expected ( after context attribute
27*c85f09ccSJohn Levon attr-context.c:3:44: error: got 1
28*c85f09ccSJohn Levon attr-context.c:4:44: error: Expected ( after context attribute
29*c85f09ccSJohn Levon attr-context.c:4:44: error: got 1
30*c85f09ccSJohn Levon attr-context.c:5:46: error: Expected , after context 1st argument
31*c85f09ccSJohn Levon attr-context.c:5:46: error: got )
32*c85f09ccSJohn Levon attr-context.c:6:45: error: Expected , after context 1st argument
33*c85f09ccSJohn Levon attr-context.c:6:45: error: got )
34*c85f09ccSJohn Levon attr-context.c:7:49: error: Expected ) after context 3rd argument
35*c85f09ccSJohn Levon attr-context.c:7:49: error: got ,
36*c85f09ccSJohn Levon attr-context.c:14:48: error: bad constant expression
37*c85f09ccSJohn Levon attr-context.c:15:46: error: bad constant expression
38*c85f09ccSJohn Levon attr-context.c:16:46: error: bad constant expression
39*c85f09ccSJohn Levon  * check-error-end
40*c85f09ccSJohn Levon  */
41