github.com/llvm-mirror/llgo@v0.0.0-20190322182713-bf6f0a60fce1/test/irgen/mangling-synthetic.go (about) 1 // RUN: llgo -fgo-pkgpath=p -c -o %T/p.o %S/Inputs/mangling-synthetic-p.go 2 // RUN: llgo -fgo-pkgpath=q -I %T -S -emit-llvm -o - %s | FileCheck %s 3 4 package q 5 6 import "p" 7 8 // CHECK-DAG: define linkonce_odr void @p.f.N3_q.T(i8* nest, i8*) 9 // CHECK-DAG: define linkonce_odr void @p.f.pN3_q.T(i8* nest, i8*) 10 type T struct { p.U } 11 12 // CHECK-DAG: declare void @q.f.N3_q.T(i8* nest, i8*) 13 // CHECK-DAG: define linkonce_odr void @q.f.pN3_q.T(i8* nest, i8*) 14 func (T) f()