]>
git.proxmox.com Git - rustc.git/blob - tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/foo_cxx.cpp
1 extern "C" int cc_plus_one_cxx(int *arg
);
2 extern "C" int cc_plus_one_cxx_asm(int *arg
);
4 int cc_plus_one_cxx(int *arg
) {
8 int cc_plus_one_cxx_asm(int *arg
) {
11 asm volatile ( " movl (%1), %0\n"
14 " retq\n" // never executed, but a shortcut to determine how
15 // the assembler deals with `ret` instructions