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