Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/gcc.dg/asm-qual-1.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line diff
--- a/gcc/testsuite/gcc.dg/asm-qual-1.c Thu Oct 25 07:37:49 2018 +0900 +++ b/gcc/testsuite/gcc.dg/asm-qual-1.c Thu Feb 13 11:34:05 2020 +0900 @@ -1,4 +1,4 @@ -/* Test that qualifiers other than volatile are ignored on asm. */ +/* Test that qualifiers other than volatile are disallowed on asm. */ /* Origin: Joseph Myers <joseph@codesourcery.com> */ /* { dg-do compile } */ /* { dg-options "-std=gnu99" } */ @@ -7,6 +7,8 @@ f (void) { asm volatile (""); - asm const (""); /* { dg-warning "const qualifier ignored on asm" } */ - asm restrict (""); /* { dg-warning "restrict qualifier ignored on asm" } */ + + asm const (""); /* { dg-error {'const' is not a valid 'asm' qualifier} } */ + + asm restrict (""); /* { dg-error {'restrict' is not a valid 'asm' qualifier} } */ }