github.com/llvm-mirror/llgo@v0.0.0-20190322182713-bf6f0a60fce1/test/execution/assignment/dereferencing.go (about)

     1  // RUN: llgo -o %t %s
     2  // RUN: %t 2>&1 | FileCheck %s
     3  
     4  // CHECK: 123
     5  
     6  package main
     7  
     8  func main() {
     9  	var x int
    10  	px := &x
    11  	*px = 123
    12  	println(x)
    13  }