Debian Codegraph @

gcc/testsuite/gdc.test/runnable/testmainb.d

raw
1 /*
2 Test that -main does nothing when main is already defined
3
4 REQUIRED_ARGS: -main
5 RUN_OUTPUT:
6 ---
7 Success
8 ---
9 */
10 extern(C) int printf(const char*, ...);
11
12 void main()
13 {
14 printf("Success\n");
15 }