blob: d9b3dce8fb12edcf1134622d9840b87e62b68b3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// PR middle-end/41275
// { dg-do compile }
// { dg-options "-O2" }
// this used to ICE
struct ErrmsgWindow
{
virtual ~ErrmsgWindow()
{
extern int _switch_mode_errorstr;
_switch_mode_errorstr = 42;
}
};
void ShowErrorMessage(void)
{
ErrmsgWindow w;
}
|