Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr8788-1.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 1830386684a0 |
rev | line source |
---|---|
111 | 1 /* PR inline-asm/8788 */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O2" } */ | |
4 | |
5 typedef struct { | |
6 long x[6]; | |
7 } myjmp_buf; | |
8 | |
9 typedef struct { | |
10 myjmp_buf regs; | |
11 } my_stack; | |
12 | |
13 void switch_to_stack (my_stack *stack){ | |
14 asm ( /* { dg-error "impossible constraint" } */ | |
15 /* { dg-warning "asm operand 1" "asm operand 1" { target *-*-* } .-1 } */ | |
16 "\n" | |
17 : "+r" (stack->regs) | |
18 ); | |
19 } | |
20 |