diff options
Diffstat (limited to 'clang/test/Sema/unnamed-bitfield-init.c')
-rw-r--r-- | clang/test/Sema/unnamed-bitfield-init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Sema/unnamed-bitfield-init.c b/clang/test/Sema/unnamed-bitfield-init.c new file mode 100644 index 0000000..f3cc49c --- /dev/null +++ b/clang/test/Sema/unnamed-bitfield-init.c @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s +typedef struct { + int a; int : 24; char b; +} S; + +S a = { 1, 2 }; |