blob: 45ff9643bc66ad0692bf47a0605510b168c9d3b8 [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// Make sure we have access to the following substitutions at all times:
// - %{cxx}
// - %{compile_flags}
// - %{link_flags}
// - %{exec}
// FILE_DEPENDENCIES: %t.exe
// RUN: %{cxx} %{compile_flags} %{link_flags} -o %t.exe %s
// RUN: %{exec} %t.exe "HELLO"
#include <cassert>
#include <string>
int main(int argc, char** argv) {
assert(argc == 2);
std::string arg = argv[1];
assert(arg == "HELLO");
return 0;
}