__asm__() outside function
commit6afe668ec7a11736a9418a46370af89a8c657ee8
authorseyko <seyko2@gmail.com>
Sun, 1 May 2016 19:38:38 +0000 (1 22:38 +0300)
committerseyko <seyko2@gmail.com>
Sun, 1 May 2016 19:38:38 +0000 (1 22:38 +0300)
tree754e61e7f4d077df6e89e5d82dc0e3638474c6ed
parent09a78412f071d189f52caed0866d02a608eb2d56
__asm__() outside function

    gcc/pcc allow __asm__() outside a function body:
    extern void vide(void);
    __asm__("vide: ret");

    There is many such code in the Linux kernels.
tccasm.c
tests/tests2/85-asm-outside-function.c [new file with mode: 0644]
tests/tests2/85-asm-outside-function.expect [new file with mode: 0644]