| 1 |
/* { dg-do compile } */ |
| 2 |
typedef struct { |
| 3 |
unsigned long attr; |
| 4 |
int chars[2]; |
| 5 |
} cchar_t; |
| 6 |
typedef struct _win_st { |
| 7 |
cchar_t _bkgrnd; |
| 8 |
} WINDOW; |
| 9 |
void render_char(WINDOW *win, cchar_t ch) |
| 10 |
{ |
| 11 |
if ((ch).chars[0] == L' ' |
| 12 |
&& (ch).chars[1] == L'\0') |
| 13 |
win->_bkgrnd = ch; |
| 14 |
} |