1 // Copyright 2016 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.
7 // Using reflect to set a value was not seen by msan.
12 extern void Go1(int*);
13 extern void Go2(char*);
15 // Use weak as a hack to permit defining a function even though we use export.
16 void C1() __attribute__ ((weak));
17 void C2() __attribute__ ((weak));
45 reflect.ValueOf(p).Elem().Set(reflect.ValueOf(C.int(42)))
50 a := (*[2]byte)(unsafe.Pointer(p))
51 reflect.Copy(reflect.ValueOf(a[:1]), reflect.ValueOf(a[1:]))