File indexing completed on 2026-01-09 09:40:44
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef ABSL_BASE_INTERNAL_INLINE_VARIABLE_TESTING_H_
0016 #define ABSL_BASE_INTERNAL_INLINE_VARIABLE_TESTING_H_
0017
0018 #include "absl/base/internal/inline_variable.h"
0019
0020 namespace absl {
0021 ABSL_NAMESPACE_BEGIN
0022 namespace inline_variable_testing_internal {
0023
0024 struct Foo {
0025 int value = 5;
0026 };
0027
0028 ABSL_INTERNAL_INLINE_CONSTEXPR(Foo, inline_variable_foo, {});
0029 ABSL_INTERNAL_INLINE_CONSTEXPR(Foo, other_inline_variable_foo, {});
0030
0031 ABSL_INTERNAL_INLINE_CONSTEXPR(int, inline_variable_int, 5);
0032 ABSL_INTERNAL_INLINE_CONSTEXPR(int, other_inline_variable_int, 5);
0033
0034 ABSL_INTERNAL_INLINE_CONSTEXPR(void(*)(), inline_variable_fun_ptr, nullptr);
0035
0036 const Foo& get_foo_a();
0037 const Foo& get_foo_b();
0038
0039 const int& get_int_a();
0040 const int& get_int_b();
0041
0042 }
0043 ABSL_NAMESPACE_END
0044 }
0045
0046 #endif