PiperOrigin-RevId: 601116457pull/15550/head
parent
af339fad1e
commit
4517308a91
7 changed files with 90 additions and 4 deletions
@ -0,0 +1,13 @@ |
||||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2024 Google LLC. 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
|
||||
|
||||
use r#struct::Foo; |
||||
|
||||
#[test] |
||||
fn test_new() { |
||||
let _ = Foo::new(); |
||||
} |
@ -0,0 +1,18 @@ |
||||
// Protocol Buffers - Google's data interchange format |
||||
// Copyright 2024 Google LLC. 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 |
||||
|
||||
// The contents of this file has no purpose. This file is used in a |
||||
// proto_library named 'struct' to test that crate names of reserved keywords |
||||
// are escaped correctly. |
||||
|
||||
syntax = "proto2"; |
||||
|
||||
package main; |
||||
|
||||
message Foo { |
||||
optional int32 a = 1; |
||||
} |
Loading…
Reference in new issue