Skip to content

Instantly share code, notes, and snippets.

@mattn
Forked from hasegawayosuke/foo.cxx
Created February 25, 2010 08:31
Show Gist options
  • Save mattn/314364 to your computer and use it in GitHub Desktop.
Save mattn/314364 to your computer and use it in GitHub Desktop.
/*
fix: error C2016: C では、構造体または共用体に少なくとも 1 つのメンバが必要です。
struct function {
};
*/
/*
foo.cxx(9) : error C2146: 構文エラー : ';' が、識別子 'foo' の前に必要です。
foo.cxx(9) : error C4430: 型指定子がありません - int と仮定しました。メモ: C++ は int を既定値としてサポートしていません
foo.cxx(9) : error C4430: 型指定子がありません - int と仮定しました。メモ: C++ は int を既定値としてサポートしていません
foo.cxx(10) : warning C4508: 'foo' : 関数に戻り値の型が指定されていません。戻り値を void 型と見なします。
*/
/* typedef void functon; */
typedef void function;
function foo() {
}
int main(void) {
foo();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment