• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2024 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package main
6
7// typedef struct { int a; void* ptr; } S;
8// static void f(S* p) {}
9import "C"
10
11func main() {
12	C.f(&C.S{
13		a: 1+
14
15			(3 + ""), // ERROR HERE
16
17		ptr: nil,
18	})
19}
20