diff --git a/test/fragments/test_putint.rb b/test/fragments/test_putint.rb
index <HASH>..<HASH> 100644
--- a/test/fragments/test_putint.rb
+++ b/test/fragments/test_putint.rb
@@ -5,6 +5,11 @@ class TestPutint < MiniTest::Test
 
   def test_putint
     @string_input = <<HERE
+class Integer
+  int putint()
+    return 1
+  end
+end
 class Object
   int main()
     42.putint()
define putting dummy to fix test