Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/asm-qual-3.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
// Test that asm-qualifiers are not allowed on toplevel asm. // { dg-do compile } // { dg-options "-std=gnu++98" } asm const (""); // { dg-error {'const' is not an 'asm' qualifier} } asm volatile (""); // { dg-warning {'asm' qualifier 'volatile' ignored outside of function body} } asm restrict (""); // { dg-error {expected '\(' before 'restrict'} } asm inline (""); // { dg-error {'asm' qualifier outside of function body} } asm goto (""); // { dg-error {'asm' qualifier outside of function body} } // There are many other things wrong with this code, so: // { dg-excess-errors "" }