llvm-for-llvmta/tools/clang/test/Sema/unnamed-bitfield-init.c

8 lines
143 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
typedef struct {
int a; int : 24; char b;
} S;
S a = { 1, 2 };