diff options
author | MoreMoschops <moschops@yahoo.co.uk> | 2015-04-26 15:33:29 +0100 |
---|---|---|
committer | MoreMoschops <moschops@yahoo.co.uk> | 2015-04-26 15:33:29 +0100 |
commit | 7d5368eda1e2402b6b2bed85586fde0c6af87816 (patch) | |
tree | 923c4057f2b4c810fa306e0867735ac23bccecf0 /ko-kr | |
parent | fcd17c238cc3f6de828be3470626e4a14878aecc (diff) |
Neither gcc nor clang accept void main.
Neither gcc nor clang accept void main. Remove this bad information. Tested as follows:
$ cat 045.cpp
void main()
{
}
$ g++ 045.cpp
045.cpp:1:11: error: ‘::main’ must return ‘int’
void main()
^
$ clang++ 045.cpp
045.cpp:1:1: error: 'main' must return 'int'
void main()
^~~~
int
1 error generated.
$ g++ --version
g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2
$ clang++ --version
Ubuntu clang version 3.4.2-3ubuntu2~xedgers (tags/RELEASE_34/dot2-final) (based on LLVM 3.4.2)
Diffstat (limited to 'ko-kr')
0 files changed, 0 insertions, 0 deletions