1 //===- CommandTest.cpp -- command line runtime builder unit tests ---------===// 2 // 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 6 // 7 //===----------------------------------------------------------------------===// 8 9 #include "flang/Optimizer/Builder/Runtime/Command.h" 10 #include "RuntimeCallTestBase.h" 11 #include "gtest/gtest.h" 12 13 TEST_F(RuntimeCallTest, genCommandArgumentCountTest) { 14 mlir::Location loc = firBuilder->getUnknownLoc(); 15 mlir::Value result = fir::runtime::genCommandArgumentCount(*firBuilder, loc); 16 checkCallOp(result.getDefiningOp(), "_FortranAArgumentCount", /*nbArgs=*/0, 17 /*addLocArgs=*/false); 18 } 19