blob: 37ff0aa8925fcae7ecb7cb3210310b8ffaf54845 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* PR inline-asm/100785 */
struct S { int a : 1; };
void
foo (struct S *x)
{
__asm__ ("" : "+m" (x->a)); /* { dg-error "address of bit-field" } */
}
void
bar (struct S *x)
{
__asm__ ("" : "=m" (x->a)); /* { dg-error "address of bit-field" } */
}
void
baz (struct S *x)
{
__asm__ ("" : : "m" (x->a)); /* { dg-error "address of bit-field" } */
}
|