Source file src/cmd/cgo/internal/test/issue26213/test26213.go

     1  // Copyright 2018 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 issue26213
     6  
     7  /*
     8  #include "jni.h"
     9  */
    10  import "C"
    11  import (
    12  	"testing"
    13  )
    14  
    15  func Test26213(t *testing.T) {
    16  	var x1 C.jobject = 0 // Note: 0, not nil. That makes sure we use uintptr for these types.
    17  	_ = x1
    18  	var x2 C.jclass = 0
    19  	_ = x2
    20  	var x3 C.jthrowable = 0
    21  	_ = x3
    22  	var x4 C.jstring = 0
    23  	_ = x4
    24  	var x5 C.jarray = 0
    25  	_ = x5
    26  	var x6 C.jbooleanArray = 0
    27  	_ = x6
    28  	var x7 C.jbyteArray = 0
    29  	_ = x7
    30  	var x8 C.jcharArray = 0
    31  	_ = x8
    32  	var x9 C.jshortArray = 0
    33  	_ = x9
    34  	var x10 C.jintArray = 0
    35  	_ = x10
    36  	var x11 C.jlongArray = 0
    37  	_ = x11
    38  	var x12 C.jfloatArray = 0
    39  	_ = x12
    40  	var x13 C.jdoubleArray = 0
    41  	_ = x13
    42  	var x14 C.jobjectArray = 0
    43  	_ = x14
    44  	var x15 C.jweak = 0
    45  	_ = x15
    46  }
    47  

View as plain text