1 // Copyright 2022 Google LLC. 2 // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. 3 4 #pragma once 5 6 #if defined(HEADER_INCLUDES_TRANSITIVE_HEADER) 7 // This fails with 8 // module //experimental/bazel_test/client:client_lib does not depend 9 // on a module exporting 'experimental/bazel_test/base/base_priv.h' 10 // because the client_lib cc_library does not depend on the base_priv 11 // cc_library directly (and cannot, due to visibility restrictions) 12 #include "experimental/bazel_test/base/base_priv.h" 13 #endif 14 15 #if defined(HEADER_INCLUDES_PRIVATE_HEADER) 16 // This fails with 17 // error: use of private header from outside its module: 18 // 'experimental/bazel_test/core/core_priv.h' [-Wprivate-header] 19 // because the generated core module has that file listed as "private" 20 // (because it came from srcs). 21 #include "experimental/bazel_test/core/core_priv.h" 22 #endif 23 24 float getGizmo(); 25