xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/bitfield-init.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -emit-llvm -o %t
2*f4a2713aSLionel Sambuc typedef struct { unsigned int i: 1; } c;
3*f4a2713aSLionel Sambuc const c d = { 1 };
4*f4a2713aSLionel Sambuc 
5*f4a2713aSLionel Sambuc // PR2310
6*f4a2713aSLionel Sambuc struct Token {
7*f4a2713aSLionel Sambuc   unsigned n : 31;
8*f4a2713aSLionel Sambuc };
sqlite3CodeSubselect()9*f4a2713aSLionel Sambuc void sqlite3CodeSubselect(){
10*f4a2713aSLionel Sambuc   struct Token one = { 1 };
11*f4a2713aSLionel Sambuc }
12*f4a2713aSLionel Sambuc 
13*f4a2713aSLionel Sambuc typedef union T0 { char field0 : 2; } T0;
14*f4a2713aSLionel Sambuc T0 T0_values = { 0 };
15