github.com/yukk001/go1.10.8@v0.0.0-20190813125351-6df2d3982e20/misc/cgo/test/issue22958.go (about)

     1  // Copyright 2017 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package cgotest
     6  
     7  // Test handling of bitfields.
     8  
     9  /*
    10  typedef struct {
    11  	unsigned long long f8  : 8;
    12  	unsigned long long f16 : 16;
    13  	unsigned long long f24 : 24;
    14  	unsigned long long f32 : 32;
    15  	unsigned long long f40 : 40;
    16  	unsigned long long f48 : 48;
    17  	unsigned long long f56 : 56;
    18  	unsigned long long f64 : 64;
    19  } issue22958Type;
    20  */
    21  import "C"
    22  
    23  // Nothing to run, just make sure this compiles.
    24  var Vissue22958 C.issue22958Type