1/* Test constraints on unary '&': PR 22367. */ 2 3/* { dg-do compile } */ 4/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */ 5 6extern void v; 7void f1 (void) { &v; } /* { dg-error "taking address of expression of type 'void'" } */ 8 9extern void *pv; 10void f2 (void) { &*pv; } /* { dg-warning "dereferencing" } */ 11 12extern const void cv; 13void f3 (void) { &cv; } 14 15extern const void *pcv; 16void f4 (void) { &*pcv; } /* { dg-warning "dereferencing" } */ 17