Files
llvm-project/clang/test/Sema/unnamed-bitfield-init.c
Eli Friedman a3b2f6f2af Make sure to count the struct elements correctly; here, we want the
member count.  The count returned by numStructUnionElements is the 
number of initializers that will be consumed, not the number of members 
to iterate through.  Fixes PR2534.

llvm-svn: 54601
2008-08-09 23:45:45 +00:00

7 lines
111 B
C

// RUN: clang -fsyntax-only -verify %s
typedef struct {
int a; int : 24; char b;
} S;
S a = { 1, 2 };