1 //===-- runtime/FortranMain/Fortran_main.c --------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "flang/Runtime/main.h"
10 #include "flang/Runtime/stop.h"
12 /* main entry into PROGRAM */
15 extern const struct EnvironmentDefaultList
*_QQEnvironmentDefaults
;
18 int main(int argc
, const char *argv
[], const char *envp
[]) {
19 RTNAME(ProgramStart
)(argc
, argv
, envp
, _QQEnvironmentDefaults
);
21 RTNAME(ProgramEndStatement
)();