Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gdc.dg/asm3.d @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
// { dg-do compile } // { dg-options "-Wall -Wdeprecated -Werror" } module asm3; void test1() nothrow // { dg-error "nothrow function 'asm3.test1' may throw" } { asm { } // { dg-error "asm statement is assumed to throw - mark it with 'nothrow' if it does not" } } void test2() pure { asm { } // { dg-error "asm statement is assumed to be impure - mark it with 'pure' if it is not" } } void test3() @nogc { asm { } // { dg-error "asm statement is assumed to use the GC - mark it with '@nogc' if it does not" } } void test4() @safe { asm { } // { dg-error "asm statement is assumed to be @system - mark it with '@trusted' if it is not" } }