URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr48552-1.c] - Rev 708
Go to most recent revision | Compare with Previous | Blame | View Log
/* PR c/48552 */ /* { dg-do compile } */ /* { dg-options "" } */ struct S; void f1 (void *x) { __asm volatile ("" : : "r" (*x)); /* { dg-warning "dereferencing" } */ } /* { dg-error "invalid use of void expression" "" { target *-*-* } 10 } */ void f2 (void *x) { __asm volatile ("" : "=r" (*x)); /* { dg-warning "dereferencing" } */ } /* { dg-error "invalid use of void expression" "" { target *-*-* } 16 } */ /* { dg-error "invalid lvalue in asm output 0" "" { target *-*-* } 16 } */ void f3 (void *x) { __asm volatile ("" : : "m" (*x)); /* { dg-warning "dereferencing" } */ } void f4 (void *x) { __asm volatile ("" : "=m" (*x)); /* { dg-warning "dereferencing" } */ } void f5 (void *x) { __asm volatile ("" : : "g" (*x)); /* { dg-warning "dereferencing" } */ } /* { dg-error "invalid use of void expression" "" { target *-*-* } 34 } */ void f6 (void *x) { __asm volatile ("" : "=g" (*x)); /* { dg-warning "dereferencing" } */ } /* { dg-error "invalid use of void expression" "" { target *-*-* } 40 } */ /* { dg-error "invalid lvalue in asm output 0" "" { target *-*-* } 40 } */ void f7 (struct S *x) { __asm volatile ("" : : "r" (*x)); /* { dg-error "dereferencing pointer to incomplete type" } */ } void f8 (struct S *x) { __asm volatile ("" : "=r" (*x)); /* { dg-error "dereferencing pointer to incomplete type" } */ } /* { dg-error "invalid lvalue in asm output 0" "" { target *-*-* } 52 } */
Go to most recent revision | Compare with Previous | Blame | View Log