mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Previously, the name of the entry point function was always main. Here, a new frontend flag is added to enable an arbitrary name to be specified. rdar://58275758
6 lines
112 B
C
6 lines
112 B
C
extern int foobar(int argc, char *argv[]);
|
|
|
|
int main(int argc, char *argv[]) {
|
|
return foobar(argc, argv);
|
|
}
|