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 additional compiler flags are added to the %{compile_flags}
10// substitution.
11
12// ADDITIONAL_COMPILE_FLAGS: -foo
13// ADDITIONAL_COMPILE_FLAGS: -bar
14// ADDITIONAL_COMPILE_FLAGS: -baz -foom
15// RUN: echo "%{compile_flags}" | grep -e '-foo -bar -baz -foom'
16

source code of libcxx/test/selftest/additional_compile_flags/substitutes-in-run.sh.cpp