]> Cypherpunks repositories - gostls13.git/commit
[dev.regabi] test: add a test for inlining closures
authorDan Scales <danscales@google.com>
Sun, 31 Jan 2021 18:05:03 +0000 (10:05 -0800)
committerDan Scales <danscales@google.com>
Mon, 1 Feb 2021 18:28:05 +0000 (18:28 +0000)
commitca6999e27c395a30edb277dbda9c5b3c5854aace
tree72c27837331ccf8973908e2aed8c2b0cd5f8bbae
parentaca22bddf231c862a1d6c9d8af8eed804c329d22
[dev.regabi] test: add a test for inlining closures

Add a test case for issue 43818. We don't want to mark as inlinable a
function with a closure that has an operation (such as OSELRECV2) that
we don't currently support for exporting. This test case fails to
compile without the fix for #43818.

Updates #43818

Change-Id: Ief322a14aefaefc6913c40a6b8505214bd622fda
Reviewed-on: https://go-review.googlesource.com/c/go/+/288392
Run-TryBot: Dan Scales <danscales@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Dan Scales <danscales@google.com>
test/closure7.go [new file with mode: 0644]