| 1 |
//===----------------------------------------------------------------------===// |
| 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 |
// Make sure that we provide the %{build} and %{run} convenience substitutions. |
| 10 |
|
| 11 |
// RUN: %{build} |
| 12 |
// RUN: %{run} "HELLO" |
| 13 |
|
| 14 |
#include <cassert> |
| 15 |
#include <string> |
| 16 |
|
| 17 |
int main(int argc, char** argv) { |
| 18 |
assert(argc == 2); |
| 19 |
|
| 20 |
std::string arg = argv[1]; |
| 21 |
assert(arg == "HELLO"); |
| 22 |
return 0; |
| 23 |
} |