aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2014-12-02 09:20:08 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2014-12-05 15:17:52 +0800
commitd3d8e3ae6306304231cbfbf7871aee6b711328a2 (patch)
treee07ecf59ab5a4e9949b7ae3a5e60a5710b085bd9 /tests
parent777eb64150ee6ea276bf17039fa8cafa154c02d9 (diff)
downloadndk-d3d8e3ae6306304231cbfbf7871aee6b711328a2.tar.gz
Add testcase for issue 79115 about confusing ld.gold warning
See b.android.com/79115 Change-Id: I858e2d29c5f22f047977e8dc269ee74c44f1f600
Diffstat (limited to 'tests')
-rw-r--r--tests/build/issue79115-confusing-ld.gold-warning/jni/Android.mk8
-rw-r--r--tests/build/issue79115-confusing-ld.gold-warning/jni/Application.mk1
-rw-r--r--tests/build/issue79115-confusing-ld.gold-warning/jni/issue79115-confusing-ld.gold-warning.c19
3 files changed, 28 insertions, 0 deletions
diff --git a/tests/build/issue79115-confusing-ld.gold-warning/jni/Android.mk b/tests/build/issue79115-confusing-ld.gold-warning/jni/Android.mk
new file mode 100644
index 000000000..eaf4706cb
--- /dev/null
+++ b/tests/build/issue79115-confusing-ld.gold-warning/jni/Android.mk
@@ -0,0 +1,8 @@
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := issue79115-confusing-ld.gold-warning
+LOCAL_SRC_FILES := issue79115-confusing-ld.gold-warning.c
+LOCAL_DISABLE_NO_EXECUTE := true
+LOCAL_LDFLAGS += -Wl,--fatal-warnings
+include $(BUILD_EXECUTABLE)
diff --git a/tests/build/issue79115-confusing-ld.gold-warning/jni/Application.mk b/tests/build/issue79115-confusing-ld.gold-warning/jni/Application.mk
new file mode 100644
index 000000000..a252a72d7
--- /dev/null
+++ b/tests/build/issue79115-confusing-ld.gold-warning/jni/Application.mk
@@ -0,0 +1 @@
+APP_ABI := all
diff --git a/tests/build/issue79115-confusing-ld.gold-warning/jni/issue79115-confusing-ld.gold-warning.c b/tests/build/issue79115-confusing-ld.gold-warning/jni/issue79115-confusing-ld.gold-warning.c
new file mode 100644
index 000000000..da0d2e8c1
--- /dev/null
+++ b/tests/build/issue79115-confusing-ld.gold-warning/jni/issue79115-confusing-ld.gold-warning.c
@@ -0,0 +1,19 @@
+/*
+ * 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.
+ */
+
+int main()
+{
+}