Source file src/cmd/cgo/internal/testerrors/testdata/issue67517.go
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 5 package main 6 7 // typedef struct { int a; void* ptr; } S; 8 // static void f(S* p) {} 9 import "C" 10 11 func main() { 12 C.f(&C.S{ 13 a: 1+ 14 15 (3 + ""), // ERROR HERE 16 17 ptr: nil, 18 }) 19 } 20