cgo: fix line/column reporting in syntax error messages

This commit is contained in:
Ayke van Laethem
2021-09-17 02:24:22 +02:00
committed by Ron Evans
parent bf9dab36f7
commit 138add2b96
5 changed files with 29 additions and 13 deletions
+5
View File
@@ -14,6 +14,9 @@ typedef someType noType; // undefined type
#define SOME_CONST_2 6) // const not used (so no error)
#define SOME_CONST_3 1234 // const too large for byte
*/
//
//
// #define SOME_CONST_4 8) // after some empty lines
import "C"
// Make sure that errors for the following lines won't change with future
@@ -30,4 +33,6 @@ var (
_ = C.SOME_CONST_1
_ byte = C.SOME_CONST_3
_ = C.SOME_CONST_4
)