Add missing test files for T13082.
authorTamar Christina <tamar@zhox.com>
Mon, 16 Jan 2017 03:11:44 +0000 (03:11 +0000)
committerTamar Christina <tamar@zhox.com>
Mon, 16 Jan 2017 08:12:10 +0000 (08:12 +0000)
Summary:
Add two missing test files for T13082.
The reason they were missing is because the .gitignore
contains a very harmful and broad wildcard `foo*`. Why?

Test Plan: make test TEST="T13082_good T13082_fail"

Reviewers: austin, bgamari, simonmar, erikd

Reviewed By: erikd

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2981

GHC Trac Issues: #13082

testsuite/tests/rts/T13082/foo.c [new file with mode: 0644]
testsuite/tests/rts/T13082/foo_dll.c [new file with mode: 0644]

diff --git a/testsuite/tests/rts/T13082/foo.c b/testsuite/tests/rts/T13082/foo.c
new file mode 100644 (file)
index 0000000..af8ad9c
--- /dev/null
@@ -0,0 +1,6 @@
+extern int bar();
+
+int foo ()
+{
+    return bar();
+}
diff --git a/testsuite/tests/rts/T13082/foo_dll.c b/testsuite/tests/rts/T13082/foo_dll.c
new file mode 100644 (file)
index 0000000..8ea6c22
--- /dev/null
@@ -0,0 +1,4 @@
+int foo()
+{
+    return 1;
+}