llvm-project/llgo/test/execution/assignment/dereferencing.go

14 lines
143 B
Go

// RUN: llgo -o %t %s
// RUN: %t 2>&1 | FileCheck %s
// CHECK: 123
package main
func main() {
var x int
px := &x
*px = 123
println(x)
}