From 43a123c1ae6613b3efeed291fa552ecd909d3acf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 16 Apr 2024 21:23:18 +0200 Subject: Adding upstream version 1.20.14. Signed-off-by: Daniel Baumann --- .../internal/gccgoimporter/testdata/v1reflect.gox | 184 +++++++++++++++++++++ 1 file changed, 184 insertions(+) create mode 100644 src/go/internal/gccgoimporter/testdata/v1reflect.gox (limited to 'src/go/internal/gccgoimporter/testdata/v1reflect.gox') diff --git a/src/go/internal/gccgoimporter/testdata/v1reflect.gox b/src/go/internal/gccgoimporter/testdata/v1reflect.gox new file mode 100644 index 0000000..d693fe6 --- /dev/null +++ b/src/go/internal/gccgoimporter/testdata/v1reflect.gox @@ -0,0 +1,184 @@ +v1; +package reflect; +pkgpath reflect; +priority 3; +import math math "math"; +import runtime runtime "runtime"; +import strconv strconv "strconv"; +import sync sync "sync"; +import unsafe unsafe "unsafe"; +init reflect reflect..import 3 math math..import 1 runtime runtime..import 1 strconv strconv..import 2; +func Append (s ; .reflect.align ; .reflect.fieldAlign ; .reflect._ ; .reflect.size ; .reflect.hash ; .reflect.hashfn >, ? )>; .reflect.equalfn , ? , ? )>; .reflect.string >; ? >; .reflect.pkgPath >; .reflect.methods >; .reflect.pkgPath >; .reflect.mtyp >>; .reflect.typ ; .reflect.tfn ; }>>>; }> + func (t >) .reflect.uncommon () ; + func (t ) PkgPath () ; + func (t ) Name () ; + func (t ) Method (i ) (m ; PkgPath ; Type ; FieldAlign () ; Method (? ) ; MethodByName (? ) (? , ? ); NumMethod () ; Name () ; PkgPath () ; Size () ; String () ; .reflect.rawString () ; Kind () + func (k ) String () ; +>; Implements (u ) ; AssignableTo (u ) ; Bits () ; ChanDir () + func (d ) String () ; +>; IsVariadic () ; Elem () ; Field (i ) ; PkgPath ; Type ; Tag + func (tag ) Get (key ) ; +>; Offset ; Index >; Anonymous ; }>>; FieldByIndex (index >) ; FieldByName (name ) (? , ? ); FieldByNameFunc (match ) >) (? , ? ); In (i ) ; Key () ; Len () ; NumField () ; NumIn () ; NumOut () ; Out (i ) ; .reflect.runtimeType () >; .reflect.common () >; .reflect.uncommon () >; }>>; Func ; Index ; }>>); + func (t ) NumMethod () ; + func (t ) MethodByName (name ) (m , ok ); +>>; .reflect.ptrToThis ; }> + func (t >) .reflect.toType () ; + func (t ) .reflect.rawString () ; + func (t ) String () ; + func (t ) Size () ; + func (t ) Bits () ; + func (t ) Align () ; + func (t ) FieldAlign () ; + func (t ) Kind () ; + func (t ) .reflect.common () ; + func (t ) NumMethod () ; + func (t ) Method (i ) (m ); + func (t ) MethodByName (name ) (m , ok ); + func (t ) PkgPath () ; + func (t ) Name () ; + func (t ) ChanDir () ; + func (t ) IsVariadic () ; + func (t ) Elem () ; + func (t ) Field (i ) ; + func (t ) FieldByIndex (index >) ; + func (t ) FieldByName (name ) (? , ? ); + func (t ) FieldByNameFunc (match ) >) (? , ? ); + func (t ) In (i ) ; + func (t ) Key () ; + func (t ) Len () ; + func (t ) NumField () ; + func (t ) NumIn () ; + func (t ) NumOut () ; + func (t ) Out (i ) ; + func (t ) .reflect.runtimeType () ; + func (ct ) .reflect.ptrTo () ; + func (t ) Implements (u ) ; + func (t ) AssignableTo (u ) ; +>>; .reflect.val ; ? + func (f ) .reflect.kind () ; + func (f ) .reflect.mustBe (expected ); + func (f ) .reflect.mustBeExported (); + func (f ) .reflect.mustBeAssignable (); +>; }> + func (v ) .reflect.iword () >; + func (v ) Addr () ; + func (v ) Bool () ; + func (v ) Bytes () >; + func (v ) CanAddr () ; + func (v ) CanSet () ; + func (v ) Call (in >) >; + func (v ) CallSlice (in >) >; + func (v ) .reflect.call (method , in >) >; + func (v ) Cap () ; + func (v ) Close (); + func (v ) Complex () ; + func (v ) Elem () ; + func (v ) Field (i ) ; + func (v ) FieldByIndex (index >) ; + func (v ) FieldByName (name ) ; + func (v ) FieldByNameFunc (match ) >) ; + func (v ) Float () ; + func (v ) Index (i ) ; + func (v ) Int () ; + func (v ) CanInterface () ; + func (v ) Interface () (i ); + func (v ) InterfaceData () >; + func (v ) IsNil () ; + func (v ) IsValid () ; + func (v ) Kind () ; + func (v ) Len () ; + func (v ) MapIndex (key ) ; + func (v ) MapKeys () >; + func (v ) Method (i ) ; + func (v ) NumMethod () ; + func (v ) MethodByName (name ) ; + func (v ) NumField () ; + func (v ) OverflowComplex (x ) ; + func (v ) OverflowFloat (x ) ; + func (v ) OverflowInt (x ) ; + func (v ) OverflowUint (x ) ; + func (v ) Pointer () ; + func (v ) Recv () (x , ok ); + func (v ) .reflect.recv (nb ) (val , ok ); + func (v ) Send (x ); + func (v ) .reflect.send (x , nb ) (selected ); + func (v ) Set (x ); + func (v ) SetBool (x ); + func (v ) SetBytes (x >); + func (v ) SetComplex (x ); + func (v ) SetFloat (x ); + func (v ) SetInt (x ); + func (v ) SetLen (n ); + func (v ) SetMapIndex (key , val ); + func (v ) SetUint (x ); + func (v ) SetPointer (x ); + func (v ) SetString (x ); + func (v ) Slice (beg , end ) ; + func (v ) String () ; + func (v ) TryRecv () (x , ok ); + func (v ) TrySend (x ) ; + func (v ) Type () ; + func (v ) Uint () ; + func (v ) UnsafeAddr () ; + func (v ) .reflect.assignTo (context , dst , target >) ; +>, x ...) ; +func AppendSlice (s , t ) ; +const Array = 17 ; +const Bool = 1 ; +const BothDir = 3 ; +const Chan = 18 ; +type ; +const Complex128 = 16 ; +const Complex64 = 15 ; +func Copy (dst , src ) ; +func DeepEqual (a1 , a2 ) ; +const Float32 = 13 ; +const Float64 = 14 ; +const Func = 19 ; +func Indirect (v ) ; +const Int = 2 ; +const Int16 = 4 ; +const Int32 = 5 ; +const Int64 = 6 ; +const Int8 = 3 ; +const Interface = 20 ; +const Invalid = 0 ; +type ; +func MakeChan (typ , buffer ) ; +func MakeMap (typ ) ; +func MakeSlice (typ , len , cap ) ; +const Map = 21 ; +type ; +func Method$equal (key1 , key2 , key_size ) ; +func Method$hash (key , key_size ) ; +func New (typ ) ; +func NewAt (typ , p ) ; +const Ptr = 22 ; +func PtrTo (t ) ; +const RecvDir = 1 ; +const SendDir = 2 ; +const Slice = 23 ; +type ; Len ; Cap ; }>>; +const String = 24 ; +type ; Len ; }>>; +const Struct = 25 ; +type ; +type ; +type ; +func TypeOf (i ) ; +const Uint = 7 ; +const Uint16 = 9 ; +const Uint32 = 10 ; +const Uint64 = 11 ; +const Uint8 = 8 ; +const Uintptr = 12 ; +const UnsafePointer = 26 ; +type ; +type ; Kind ; }> + func (e >) Error () ; +>; +func ValueError$equal (key1 , key2 , key_size ) ; +func ValueError$hash (key , key_size ) ; +func ValueOf (i ) ; +func Zero (typ ) ; +checksum DD7720796E91D9D24ED12B75BDEA2A714D47B095; -- cgit v1.2.3