blob: 79135c3d2f2f2ebf77bd3a8ddc078a714d708ed8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/* Test that qualifiers on asm are allowed in any order. */
/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */
void
f (void)
{
asm volatile goto ("" :::: lab);
asm volatile inline ("" :::);
asm inline volatile ("" :::);
asm inline goto ("" :::: lab);
asm goto volatile ("" :::: lab);
asm goto inline ("" :::: lab);
asm volatile inline goto ("" :::: lab);
asm volatile goto inline ("" :::: lab);
asm inline volatile goto ("" :::: lab);
asm inline goto volatile ("" :::: lab);
asm goto volatile inline ("" :::: lab);
asm goto inline volatile ("" :::: lab);
/* Duplicates are not allowed. */
asm goto volatile volatile ("" :::: lab); /* { dg-error "" } */
asm volatile goto volatile ("" :::: lab); /* { dg-error "" } */
asm volatile volatile goto ("" :::: lab); /* { dg-error "" } */
asm goto goto volatile ("" :::: lab); /* { dg-error "" } */
asm goto volatile goto ("" :::: lab); /* { dg-error "" } */
asm volatile goto goto ("" :::: lab); /* { dg-error "" } */
asm inline volatile volatile ("" :::); /* { dg-error "" } */
asm volatile inline volatile ("" :::); /* { dg-error "" } */
asm volatile volatile inline ("" :::); /* { dg-error "" } */
asm inline inline volatile ("" :::); /* { dg-error "" } */
asm inline volatile inline ("" :::); /* { dg-error "" } */
asm volatile inline inline ("" :::); /* { dg-error "" } */
asm goto inline inline ("" :::: lab); /* { dg-error "" } */
asm inline goto inline ("" :::: lab); /* { dg-error "" } */
asm inline inline goto ("" :::: lab); /* { dg-error "" } */
asm goto goto inline ("" :::: lab); /* { dg-error "" } */
asm goto inline goto ("" :::: lab); /* { dg-error "" } */
asm inline goto goto ("" :::: lab); /* { dg-error "" } */
lab:
;
}
|