xref: /aosp_15_r20/external/bazelbuild-rules_cc/tests/compiler_settings/main.cc (revision eed53cd41c5909d05eedc7ad9720bb158fd93452)
1*eed53cd4SHONG Yifan // Copyright 2023 The Bazel Authors. All rights reserved.
2*eed53cd4SHONG Yifan //
3*eed53cd4SHONG Yifan // Licensed under the Apache License, Version 2.0 (the "License");
4*eed53cd4SHONG Yifan // you may not use this file except in compliance with the License.
5*eed53cd4SHONG Yifan // You may obtain a copy of the License at
6*eed53cd4SHONG Yifan //
7*eed53cd4SHONG Yifan //    http://www.apache.org/licenses/LICENSE-2.0
8*eed53cd4SHONG Yifan //
9*eed53cd4SHONG Yifan // Unless required by applicable law or agreed to in writing, software
10*eed53cd4SHONG Yifan // distributed under the License is distributed on an "AS IS" BASIS,
11*eed53cd4SHONG Yifan // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*eed53cd4SHONG Yifan // See the License for the specific language governing permissions and
13*eed53cd4SHONG Yifan // limitations under the License.
14*eed53cd4SHONG Yifan 
15*eed53cd4SHONG Yifan #include <iostream>
16*eed53cd4SHONG Yifan 
17*eed53cd4SHONG Yifan #define STRINGIFY(x) #x
18*eed53cd4SHONG Yifan #define TO_STRING(x) STRINGIFY(x)
19*eed53cd4SHONG Yifan 
main()20*eed53cd4SHONG Yifan int main() {
21*eed53cd4SHONG Yifan   std::cout << "Hello, " << TO_STRING(COMPILER) << "!" << std::endl;
22*eed53cd4SHONG Yifan }
23