summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-17 10:04:22 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-17 10:04:22 +0000
commita5c76f8cfc5e992dee903347a33ee499f951121b (patch)
tree1f195a823d5ab80451f5199d18f08c87dabe59d8
parent1aaeeb326e754c5c5db83fbf35f780f729a9dfed (diff)
a C source code must end with EOL
cf: ISO 9899 section 5.1.1.2 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/mkmf/test_framework.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mkmf/test_framework.rb b/test/mkmf/test_framework.rb
index eb29c6b..ba15299 100644
--- a/test/mkmf/test_framework.rb
+++ b/test/mkmf/test_framework.rb
@@ -10,7 +10,7 @@ class TestMkmf
FileUtils.mkdir_p(hdrdir)
File.write("#{hdrdir}/#{hdrname}", "")
src = "#{fwdir}/main.c"
- File.write(src, "void #{fw}(void) {}")
+ File.write(src, "void #{fw}(void) {}\n")
cmd = LINK_SO.dup
RbConfig.expand(cmd, RbConfig::CONFIG.merge("OBJS"=>src))
cmd.gsub!("$@", "#{fwdir}/#{fw}")