github.com/llvm-mirror/llgo@v0.0.0-20190322182713-bf6f0a60fce1/test/irgen/cabi.go (about)

     1  // RUN: llgo -S -emit-llvm -o - %s | FileCheck %s
     2  
     3  package foo
     4  
     5  // CHECK: define void @foo.Test01_SI8(i8* nest, i8 signext)
     6  func Test01_SI8(x int8) {}
     7  // CHECK: define void @foo.Test02_UI8(i8* nest, i8 zeroext)
     8  func Test02_UI8(x uint8) {}
     9  
    10  // CHECK: define void @foo.Test03_SI16(i8* nest, i16 signext)
    11  func Test03_SI16(x int16) {}
    12  // CHECK: define void @foo.Test04_UI16(i8* nest, i16 zeroext)
    13  func Test04_UI16(x uint16) {}
    14  
    15  // CHECK: define void @foo.Test05_SI32(i8* nest, i32)
    16  func Test05_SI32(x int32) {}
    17  // CHECK: define void @foo.Test06_UI32(i8* nest, i32)
    18  func Test06_UI32(x uint32) {}
    19  
    20  // CHECK: define void @foo.Test07_SI64(i8* nest, i64)
    21  func Test07_SI64(x int64) {}
    22  // CHECK: define void @foo.Test08_UI64(i8* nest, i64)
    23  func Test08_UI64(x uint64) {}