Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/asm-qual-1.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
rev | line source |
---|---|
145 | 1 // Test that qualifiers other than volatile are disallowed on asm. |
2 // { dg-do compile } | |
3 // { dg-options "-std=gnu++98" } | |
4 | |
5 void | |
6 f () | |
7 { | |
8 asm volatile (""); | |
9 | |
10 asm const (""); // { dg-error {'const' is not an 'asm' qualifier} } | |
11 | |
12 asm __restrict (""); // { dg-error {'__restrict' is not an 'asm' qualifier} } | |
13 } |