summaryrefslogtreecommitdiffstats
path: root/test/fixedbugs/issue7995b.dir/x1.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs/issue7995b.dir/x1.go')
-rw-r--r--test/fixedbugs/issue7995b.dir/x1.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/fixedbugs/issue7995b.dir/x1.go b/test/fixedbugs/issue7995b.dir/x1.go
new file mode 100644
index 0000000..bafecf5
--- /dev/null
+++ b/test/fixedbugs/issue7995b.dir/x1.go
@@ -0,0 +1,12 @@
+package x1
+
+import "fmt"
+
+var P int
+
+//go:noinline
+func F(x *int) string {
+ P = 50
+ *x = 100
+ return fmt.Sprintln(P, *x)
+}