make tblgen produce a function that returns the name for a physreg.
[llvm/avr.git] / test / FrontendC / 2009-02-17-BitField-dbg.c
blob36ee2e6f0ef70ad40ea928992cb5ebc179c5bf90
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"
9 struct {
10 int a:4;
11 int b:2;
12 } mystruct;