dep-protobuf/objectivec/Tests/GPBCompileTest24.m
Thomas Van Lenten 9f52d5e380 [ObjC] Fix issue using GPBBootstrap.h only.
GPB_ENUM_FWD_DECLARE needs `int32_t`, so add the import so GPBBootstrap.h
stands on its own without needing users to import something else.

Add another compile test file to ensure this doesn't break.

PiperOrigin-RevId: 610403337
2024-02-26 07:37:41 -08:00

20 lines
745 B
Objective-C

// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
// This is a test including a single public header to ensure things build.
// It helps test that imports are complete/ordered correctly.
#import "GPBBootstrap.h"
GPB_ENUM_FWD_DECLARE(SomeProtoBasedEnum);
// A prototype that uses the fwd decls.
extern enum SomeProtoBasedEnum SomeFunction(void);
// Something in the body of this file so the compiler/linker won't complain
// about an empty .o file.
__attribute__((visibility("default"))) char dummy_symbol_24 = 0;