diff options
Diffstat (limited to 'go/ssa/example_test.go')
-rw-r--r-- | go/ssa/example_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/go/ssa/example_test.go b/go/ssa/example_test.go index 2ab9e9926..9a5fd4369 100644 --- a/go/ssa/example_test.go +++ b/go/ssa/example_test.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !android && !ios && !js +// +build !android,!ios,!js + package ssa_test import ( @@ -48,7 +51,6 @@ func main() { // Build and run the ssadump.go program if you want a standalone tool // with similar functionality. It is located at // golang.org/x/tools/cmd/ssadump. -// func Example_buildPackage() { // Replace interface{} with any for this test. ssa.SetNormalizeAnyForTesting(true) @@ -159,7 +161,7 @@ func Example_loadWholeProgram() { } // Create SSA packages for well-typed packages and their dependencies. - prog, pkgs := ssautil.AllPackages(initial, ssa.PrintPackages) + prog, pkgs := ssautil.AllPackages(initial, ssa.PrintPackages|ssa.InstantiateGenerics) _ = pkgs // Build SSA code for the whole program. |