__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.
This commit is contained in:
7
tests/tests2/85-asm-outside-function.c
Normal file
7
tests/tests2/85-asm-outside-function.c
Normal file
@ -0,0 +1,7 @@
|
||||
extern void vide(void);
|
||||
__asm__("vide: ret");
|
||||
|
||||
int main() {
|
||||
vide();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user