annotate gcc/testsuite/gdc.dg/asm5.d @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
1 // https://issues.dlang.org/show_bug.cgi?id=20593
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
2 // { dg-do compile }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
3 // { dg-options "-Wall -Wdeprecated -Werror" }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
4 module asm5;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
5
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
6 void test(int a)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
7 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
8 asm
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
9 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
10 "cpuid" : : "a" a; // { dg-error "'a' must be surrounded by parentheses" }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
11 }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
12 }