1 /* Test error conditions of asm flag outputs. */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
4 /* { dg-skip-if "" { arm_thumb1 } } */
6 void f_B(void) { _Bool x
; asm("" : "=@cccc"(x
)); }
7 void f_c(void) { char x
; asm("" : "=@cccc"(x
)); }
8 void f_s(void) { short x
; asm("" : "=@cccc"(x
)); }
9 void f_i(void) { int x
; asm("" : "=@cccc"(x
)); }
10 void f_l(void) { long x
; asm("" : "=@cccc"(x
)); }
11 void f_ll(void) { long long x
; asm("" : "=@cccc"(x
)); }
16 asm("" : "=@cccc"(x
)); /* { dg-error "invalid type" } */
22 asm("" : "=@cccc"(x
)); /* { dg-error "invalid type" } */
25 struct S
{ int x
[3]; };
30 asm("" : "=@cccc"(x
)); /* { dg-error "invalid type" } */