-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TestApp generation should add necessary imports #267
Comments
|
@elliotchance Yes I am seeing this with |
I confirm that https://github.com/elliotchance/c2go/blame/master/main.go#L227 |
That was a bug introduced by myself... You can even see the original code commented out. 😢 If you have time please change that line back to: p.OutputAsTest = args.outputAsTest That will also fix this ticket. |
TODO: Verify that this is fixed by 1a2f089 |
I can confirm that it was not fixed in that PR (already merged). |
Function TestApp does make use of
os
,ioutil
,noarch
andtesting
packages. We should make sure that those imports are always included.It is possible to create trivial programs where the
main
function do not refer to those imports.=>
./main.go:21:2: undefined: noarch
Low priority since any non-trivial C program will import "os" and "noarch".
The text was updated successfully, but these errors were encountered: