TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

14 lines
337 B

#include "include/typephp_lib_demo.h"
#include <iostream>
int main()
{
const int first = typephp_lib_demo_add(20, 22);
const int second = typephp_lib_demo_add(-10, 7);
if (first != 42 || second != -3) {
std::cerr << "unexpected results: " << first << ", " << second << '\n';
return 1;
}
return 0;
}