mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-15 16:33:40 +00:00
cgo: fix line/column reporting in syntax error messages
This commit is contained in:
committed by
Ron Evans
parent
bf9dab36f7
commit
138add2b96
Vendored
+5
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user