llvm-project/clang/test/Sema/unnamed-bitfield-init.c

8 lines
143 B
C

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