summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/attr-mode-1.c
blob: e60d01b3382aa337dab30b58989c86116ababe8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR c/17384 */
/* { dg-do compile } */
/* { dg-options "" } */

typedef struct __attribute__((mode(SI))) { 
    unsigned    INT0    :1, 
                RES0    :1, 
                        :6, 
                INT1    :1, 
                RES1    :1, 
                        :6, 
                        :16; 
} MCR;  /* { dg-error "inappropriate type" } */