aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/build/ucontext/jni/Android.mk6
-rw-r--r--tests/build/ucontext/jni/Application.mk1
-rw-r--r--tests/build/ucontext/jni/ucontext.c21
3 files changed, 28 insertions, 0 deletions
diff --git a/tests/build/ucontext/jni/Android.mk b/tests/build/ucontext/jni/Android.mk
new file mode 100644
index 000000000..1fe3f992e
--- /dev/null
+++ b/tests/build/ucontext/jni/Android.mk
@@ -0,0 +1,6 @@
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := ucontext
+LOCAL_SRC_FILES := ucontext.c
+include $(BUILD_EXECUTABLE)
diff --git a/tests/build/ucontext/jni/Application.mk b/tests/build/ucontext/jni/Application.mk
new file mode 100644
index 000000000..a252a72d7
--- /dev/null
+++ b/tests/build/ucontext/jni/Application.mk
@@ -0,0 +1 @@
+APP_ABI := all
diff --git a/tests/build/ucontext/jni/ucontext.c b/tests/build/ucontext/jni/ucontext.c
new file mode 100644
index 000000000..2e186f3b2
--- /dev/null
+++ b/tests/build/ucontext/jni/ucontext.c
@@ -0,0 +1,21 @@
+/*
+ * Copyright (C) 2014 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#include <signal.h>
+
+int main()
+{
+ struct ucontext u;
+}