Searched refs:bitY (Results 1 - 3 of 3) sorted by relevance

/external/clang/test/CXX/expr/expr.unary/expr.sizeof/
H A Dp1.cpp5 unsigned bitY : 4; member in struct:A
16 x = sizeof(a->var ? a->bitX : a->bitY); // expected-error {{invalid application of 'sizeof' to bit-field}}
19 x = sizeof(a->bitY += 3); // expected-error {{invalid application of 'sizeof' to bit-field}}
/external/clang/test/Sema/
H A Dbitfield.c45 unsigned bitY : 4; member in struct:Test4
50 (void) sizeof((t->bitY)); // expected-error {{invalid application of 'sizeof' to bit-field}}
54 (void) sizeof(t->var ? t->bitX : t->bitY); // not a bitfield designator in C
/external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/
H A Dp5.cpp45 unsigned bitY : 4; // expected-note {{bit-field is declared here}} member in struct:test3::A
56 unsigned &t4 = (a->var ? a->bitX : a->bitY); // expected-error {{non-const reference cannot bind to bit-field}}
59 unsigned &t7 = (a->var ? a->var : a->bitY); // expected-error {{non-const reference cannot bind to bit-field}}
61 unsigned &t9 = (a->bitY += 3); // expected-error {{non-const reference cannot bind to bit-field 'bitY'}}

Completed in 380 milliseconds