repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge -r 127928:132243 from trunk
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr33887-2.C
blob
f64cfad96079c9532ebe947dd3c856b9d6a56f34
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
}