2 /* { dg-do compile } */
3 /* { dg-options "-Wno-c++-compat" { target c } } */
11 static struct U
*u1
, *u2
;
14 foo (struct U
*p
, struct U
*q
)
16 return q
- p
; /* { dg-error "arithmetic on pointer to an empty aggregate" } */
22 __PTRDIFF_TYPE__ d
= u1
- u2
; /* { dg-error "arithmetic on pointer to an empty aggregate" } */
23 __asm
volatile ("" : "+g" (d
));