clang needs a newline at the end of src

This commit is contained in:
Kovid Goyal 2021-09-18 11:16:56 +05:30
parent 71963aa738
commit 7cf73c10ac
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -246,7 +246,7 @@ def test_compile(
stdin = p.stdin stdin = p.stdin
assert stdin is not None assert stdin is not None
try: try:
stdin.write(src.encode('utf-8')) stdin.write((src + '\n').encode('utf-8'))
stdin.close() stdin.close()
except BrokenPipeError: except BrokenPipeError:
return False return False