summaryrefslogtreecommitdiff
path: root/testsuite/tests/ffi/should_run
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-05-27 15:04:21 +0100
committerIan Lynagh <igloo@earth.li>2012-05-27 15:04:21 +0100
commit75706a45f509c8fb31e55166abc9ff0434a84995 (patch)
tree8c019d7743da4bd6b437e3523469b72e489a5257 /testsuite/tests/ffi/should_run
parent535ad9d0aa45876f5acc4f75a84ae098993103e9 (diff)
downloadhaskell-75706a45f509c8fb31e55166abc9ff0434a84995.tar.gz
Go back to using 'const' in capi_value
Diffstat (limited to 'testsuite/tests/ffi/should_run')
-rw-r--r--testsuite/tests/ffi/should_run/capi_value_c.c2
-rw-r--r--testsuite/tests/ffi/should_run/capi_value_c.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/tests/ffi/should_run/capi_value_c.c b/testsuite/tests/ffi/should_run/capi_value_c.c
index 5d37a7fcc2..45db07c6a0 100644
--- a/testsuite/tests/ffi/should_run/capi_value_c.c
+++ b/testsuite/tests/ffi/should_run/capi_value_c.c
@@ -1,4 +1,4 @@
#include "capi_value_c.h"
-int i = 23;
+const int i = 23;
diff --git a/testsuite/tests/ffi/should_run/capi_value_c.h b/testsuite/tests/ffi/should_run/capi_value_c.h
index cec1863e99..6decb42933 100644
--- a/testsuite/tests/ffi/should_run/capi_value_c.h
+++ b/testsuite/tests/ffi/should_run/capi_value_c.h
@@ -1,3 +1,3 @@
-extern int i;
+extern const int i;
#define j 24