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
gcc/testsuite/
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr33887-2.C
1
/* { dg-do run } */
2
3
extern "C" void abort() __attribute__ ((noreturn));
4
5
struct s
6
{
7
unsigned long long f1 : 40;
8
unsigned int f2 : 24;
9
} sv;
10
11
int main()
12
{
13
int f2;
14
sv.f2 = (1 << 24) - 1;
15
__asm__ volatile ("" : : : "memory");
16
++sv.f2;
17
f2 = sv.f2;
18
if (f2 != 0)
19
abort();
20
return 0;
21
}