From 757c264bc10ebc71074ee3f5fb66d670667a09bc Mon Sep 17 00:00:00 2001 From: Kevin Cheng Date: Thu, 18 Apr 2019 11:31:16 -0700 Subject: Add in cffi 1.12.2 (e0c7666) Since this is a mercurial repo, d/led zip of src: https://bitbucket.org/cffi/cffi/get/v1.12.2.zip Also add in misc METADATA/NOTICE/Android.bp/etc files. Bug: 122778810 Test: None Change-Id: I36c58ed07a2cdd4d9d11831908175a5c988f33c1 --- testing/embedding/add1-test.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 testing/embedding/add1-test.c (limited to 'testing/embedding/add1-test.c') diff --git a/testing/embedding/add1-test.c b/testing/embedding/add1-test.c new file mode 100644 index 0000000..b9ede18 --- /dev/null +++ b/testing/embedding/add1-test.c @@ -0,0 +1,21 @@ +#include + +#ifdef _MSC_VER +#include +#endif + +extern int add1(int, int); + + +int main(void) +{ + int x, y; + x = add1(40, 2); + y = add1(100, -5); + printf("got: %d %d\n", x, y); +#ifdef _MSC_VER + if (x == 0 && y == 0) + Sleep(2000); +#endif + return 0; +} -- cgit v1.2.3