OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2011-08-19 Andrew Stubbs <ams@codesourcery.com>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
volatile-bitfields-1.c
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fstrict-volatile-bitfields" } */
3
4
typedef struct {
5
char a:1;
6
char b:7;
7
int c;
8
} BitStruct;
9
10
volatile BitStruct bits;
11
12
int foo ()
13
{
14
return bits.b;
15
}
16
17
/* { dg-final { scan-assembler "mov(b|zbl).*bits" } } */