aboutsummaryrefslogtreecommitdiff
path: root/test/typeparam/dedup.dir/c.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/typeparam/dedup.dir/c.go')
-rw-r--r--test/typeparam/dedup.dir/c.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/typeparam/dedup.dir/c.go b/test/typeparam/dedup.dir/c.go
new file mode 100644
index 0000000000..11a5d97642
--- /dev/null
+++ b/test/typeparam/dedup.dir/c.go
@@ -0,0 +1,14 @@
+// Copyright 2021 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package c
+
+import "a"
+
+func C() {
+ var x int64
+ println(a.F(&x, &x))
+ var y int32
+ println(a.F(&y, &y))
+}