1 /* Test error conditions of asm flag outputs. */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
5 void f_B(void) { _Bool x
; asm("" : "=@ccc"(x
)); }
6 void f_c(void) { char x
; asm("" : "=@ccc"(x
)); }
7 void f_s(void) { short x
; asm("" : "=@ccc"(x
)); }
8 void f_i(void) { int x
; asm("" : "=@ccc"(x
)); }
9 void f_l(void) { long x
; asm("" : "=@ccc"(x
)); }
10 void f_ll(void) { long long x
; asm("" : "=@ccc"(x
)); }
15 asm("" : "=@ccc"(x
)); /* { dg-error invalid type } */
21 asm("" : "=@ccc"(x
)); /* { dg-error invalid type } */
24 struct S
{ int x
[3]; };
29 asm("" : "=@ccc"(x
)); /* { dg-error invalid type } */