X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.c-torture%2Funsorted%2FBUG1.c;fp=gcc%2Ftestsuite%2Fgcc.c-torture%2Funsorted%2FBUG1.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=ada8eaf49c71bd125afbc35a89550eabf18e39b5;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.c-torture/unsorted/BUG1.c b/gcc/testsuite/gcc.c-torture/unsorted/BUG1.c deleted file mode 100644 index ada8eaf4..00000000 --- a/gcc/testsuite/gcc.c-torture/unsorted/BUG1.c +++ /dev/null @@ -1,37 +0,0 @@ -struct _XtTextSource { - /* ... */ - void (* SetSelection)(); - /* ... */ - }; - -typedef struct _XtTextSource *XtTextSource; - -typedef struct _TextPart { - XtTextSource source; - /* ... */ -} TextPart; - -typedef struct _TextRec { - /* ... */ - TextPart text; -} TextRec; - -typedef struct _TextRec *TextWidget; - - -void XtTextUnsetSelection(w) - TextWidget w; /* original is: Widget w; */ -{ - register TextWidget ctx = (TextWidget) w; - void (*nullProc)() = 0; - -/* - * the following line causes the error, when optimizing: - */ - - if (ctx->text.source->SetSelection != nullProc) { - - foo(); - - } -}