7ab14fd27a68826046c8cbd13ed0b3cfa5b87863
[oota-llvm.git] / test / FrontendC / 2009-02-17-BitField-dbg.c
1 // Check bitfields.
2 // RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \
3 // RUN: llc --disable-fp-elim -o 2009-02-17-BitField-dbg.s
4 // RUN: %compile_c 2009-02-17-BitField-dbg.s -o 2009-02-17-BitField-dbg.o
5 // RUN: echo {ptype mystruct} > %t2
6 // RUN: gdb -q -batch -n -x %t2 2009-02-17-BitField-dbg.o | \
7 // RUN:   tee 2009-02-17-BitField-dbg.out | grep "int a : 4"
8 //
9 // XFAIL: powerpc-apple-darwin
10 // FIXME: This doesn't work for PPC Darwin because we turned off debugging on
11 // that platform.
12
13 struct {
14   int  a:4;
15   int  b:2;
16 } mystruct;
17