Debian Codegraph @

gcc/testsuite/gcc.c-torture/compile/980816-1.c

raw
1 /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
2
3 typedef __SIZE_TYPE__ size_t;
4 typedef void *XtPointer;
5
6 typedef struct _WidgetRec *Widget;
7 typedef struct _WidgetClassRec *WidgetClass;
8
9 extern WidgetClass commandWidgetClass;
10
11 typedef void (*XtCallbackProc)(
12 Widget ,
13 XtPointer ,
14 XtPointer
15 );
16
17 extern const char XtStrings[];
18
19 extern Widget XtVaCreateManagedWidget(const char *, WidgetClass, Widget, ...);
20 extern void XtAddCallback(const char *, XtCallbackProc, XtPointer);
21
22 typedef struct
23 {
24 char *Name,
25 *Label;
26 XtCallbackProc Callback;
27 XtPointer ClientData;
28 Widget W;
29 } DialogButtonType, *DialogButtonTypePtr;
30
31
32 Widget AddButtons(Widget Parent, Widget Top,
33 DialogButtonTypePtr Buttons, size_t Count)
34 {
35 int i;
36
37 for (i = 0; i < Count; i++)
38 {
39 if (!Buttons[i].Label)
40 continue;
41 Buttons[i].W = XtVaCreateManagedWidget(Buttons[i].Name,
42 commandWidgetClass,
43 Parent,
44 ((char*)&XtStrings[429]) , Buttons[i].Label,
45 "fromHoriz" , i ? Buttons[i-1].W : ((void *)0) ,
46 "fromVert" , Top,
47 "resizable" , 1 ,
48 ((void *)0) );
49
50 XtAddCallback(((char*)&XtStrings[136]),
51 Buttons[i].Callback, Buttons[i].ClientData);
52 }
53 return(Buttons[Count-1].W);
54 }
55