* tree-loop-distribution.c (struct partition): New field recording
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / BUG1.c
blobada8eaf49c71bd125afbc35a89550eabf18e39b5
1 struct _XtTextSource {
2 /* ... */
3 void (* SetSelection)();
4 /* ... */
5 };
7 typedef struct _XtTextSource *XtTextSource;
9 typedef struct _TextPart {
10 XtTextSource source;
11 /* ... */
12 } TextPart;
14 typedef struct _TextRec {
15 /* ... */
16 TextPart text;
17 } TextRec;
19 typedef struct _TextRec *TextWidget;
22 void XtTextUnsetSelection(w)
23 TextWidget w; /* original is: Widget w; */
25 register TextWidget ctx = (TextWidget) w;
26 void (*nullProc)() = 0;
29 * the following line causes the error, when optimizing:
32 if (ctx->text.source->SetSelection != nullProc) {
34 foo();