mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
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
20 lines
745 B
Objective-C
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;
|