mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Test case distilled from sed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8224 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cec2eb2591
commit
879678338f
14
test/CFrontend/2003-08-29-BitFieldStruct.c
Normal file
14
test/CFrontend/2003-08-29-BitFieldStruct.c
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
typedef enum { FALSE, TRUE } flagT;
|
||||||
|
|
||||||
|
struct Word
|
||||||
|
{
|
||||||
|
short bar;
|
||||||
|
short baz;
|
||||||
|
flagT final:1;
|
||||||
|
short quux;
|
||||||
|
} *word_limit;
|
||||||
|
|
||||||
|
void foo ()
|
||||||
|
{
|
||||||
|
word_limit->final = (word_limit->final && word_limit->final);
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user