xref: /aosp_15_r20/external/abseil-cpp/CMake/install_test_project/simple.cc (revision 9356374a3709195abf420251b3e825997ff56c0f)
1*9356374aSAndroid Build Coastguard Worker //
2*9356374aSAndroid Build Coastguard Worker // Copyright 2019 The Abseil Authors.
3*9356374aSAndroid Build Coastguard Worker //
4*9356374aSAndroid Build Coastguard Worker // Licensed under the Apache License, Version 2.0 (the "License");
5*9356374aSAndroid Build Coastguard Worker // you may not use this file except in compliance with the License.
6*9356374aSAndroid Build Coastguard Worker // You may obtain a copy of the License at
7*9356374aSAndroid Build Coastguard Worker //
8*9356374aSAndroid Build Coastguard Worker //    https://www.apache.org/licenses/LICENSE-2.0
9*9356374aSAndroid Build Coastguard Worker //
10*9356374aSAndroid Build Coastguard Worker // Unless required by applicable law or agreed to in writing, software
11*9356374aSAndroid Build Coastguard Worker // distributed under the License is distributed on an "AS IS" BASIS,
12*9356374aSAndroid Build Coastguard Worker // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*9356374aSAndroid Build Coastguard Worker // See the License for the specific language governing permissions and
14*9356374aSAndroid Build Coastguard Worker // limitations under the License.
15*9356374aSAndroid Build Coastguard Worker 
16*9356374aSAndroid Build Coastguard Worker #include <iostream>
17*9356374aSAndroid Build Coastguard Worker #include "absl/base/config.h"
18*9356374aSAndroid Build Coastguard Worker #include "absl/strings/substitute.h"
19*9356374aSAndroid Build Coastguard Worker 
20*9356374aSAndroid Build Coastguard Worker #if !defined(ABSL_LTS_RELEASE_VERSION) || ABSL_LTS_RELEASE_VERSION != 99998877
21*9356374aSAndroid Build Coastguard Worker #error ABSL_LTS_RELEASE_VERSION is not set correctly.
22*9356374aSAndroid Build Coastguard Worker #endif
23*9356374aSAndroid Build Coastguard Worker 
24*9356374aSAndroid Build Coastguard Worker #if !defined(ABSL_LTS_RELEASE_PATCH_LEVEL) || ABSL_LTS_RELEASE_PATCH_LEVEL != 0
25*9356374aSAndroid Build Coastguard Worker #error ABSL_LTS_RELEASE_PATCH_LEVEL is not set correctly.
26*9356374aSAndroid Build Coastguard Worker #endif
27*9356374aSAndroid Build Coastguard Worker 
main(int argc,char ** argv)28*9356374aSAndroid Build Coastguard Worker int main(int argc, char** argv) {
29*9356374aSAndroid Build Coastguard Worker   for (int i = 0; i < argc; ++i) {
30*9356374aSAndroid Build Coastguard Worker     std::cout << absl::Substitute("Arg $0: $1\n", i, argv[i]);
31*9356374aSAndroid Build Coastguard Worker   }
32*9356374aSAndroid Build Coastguard Worker }
33