-
Notifications
You must be signed in to change notification settings - Fork 171
Enabling c
backend testing for integration_tests/test_c_interop_01.py
#574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ich are not present in lfortran_intrinsics.h 2. Implement only non-empty functions, if not done then this leads to duplicate declaration
The file,
[ 33%] Generating test_c_interop_01.c
[ 66%] Building C object CMakeFiles/test_c_interop_01.dir/test_c_interop_01.c.o
[100%] Linking C executable test_c_interop_01
[100%] Built target test_c_interop_01
(lp) 19:47:54:~/lpython_project/lpython/integration_tests % ./test_c_interop_01
0.000000
0.000000
1.000000
ASSERT failed: /Users/czgdp1807/lpython_project/lpython/integration_tests/test_c_interop_01.c
function test_c_callbacks(), line number 52 at
__lpython_overloaded_0__abs(_lfortran_dsin(pi/(float)(2)) - (float)(1)) < 1.000000e-12 |
I think it's fine, but didn't have time to study carefully. Tests should be fixed first. |
Will do that once I convert this to ready mode. Meanwhile if you have any thoughts/comments/objections on the changes, then feel free to let me know. |
I think the changes are good, thanks! |
Tests should pass. I hope. 🤞. |
Tests pass. This is ready. |
I don't like commenting out tests, as we need them for LLVM and pure Python too. But fortunately I fixed most of these issues in main already, so I got the asserts working in this PR. |
No description provided.