diff options
author | Devang Patel <dpatel@apple.com> | 2009-02-17 21:23:59 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-02-17 21:23:59 +0000 |
commit | f1f30d4f47a32392c93f4d00e47af7519f331fa7 (patch) | |
tree | f35a164ccccd774618350c06270144469cd78830 /test/FrontendC | |
parent | 74cd6d429d590efefc3d1a7c5587f1c9dddd4d80 (diff) | |
download | external_llvm-f1f30d4f47a32392c93f4d00e47af7519f331fa7.zip external_llvm-f1f30d4f47a32392c93f4d00e47af7519f331fa7.tar.gz external_llvm-f1f30d4f47a32392c93f4d00e47af7519f331fa7.tar.bz2 |
Emit debug info for bitfields.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64815 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC')
-rw-r--r-- | test/FrontendC/2009-02-17-BitField-dbg.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/FrontendC/2009-02-17-BitField-dbg.c b/test/FrontendC/2009-02-17-BitField-dbg.c new file mode 100644 index 0000000..456b0a6 --- /dev/null +++ b/test/FrontendC/2009-02-17-BitField-dbg.c @@ -0,0 +1,13 @@ +// Check bitfields. +// RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \ +// RUN: llc --disable-fp-elim -o 2009-02-17-BitField-dbg.s -f +// RUN: %compile_c 2009-02-17-BitField-dbg.s -o 2009-02-17-BitField-dbg.o +// RUN: echo {ptype mystruct} > %t2 +// RUN: gdb -q -batch -n -x %t2 2009-02-17-BitField-dbg.o | \ +// RUN: tee 2009-02-17-BitField-dbg.out | grep "int a : 4" + +struct { + int a:4; + int b:2; +} mystruct; + |