Skip to content

Commit 07a1365

Browse files
focalintentfacchinm
authored andcommitted
Add test for multi-line prototype
1 parent fbfaa56 commit 07a1365

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
void setup() { myctagstestfunc(1,2,3,4); }
2+
3+
void myctagstestfunc(int a,
4+
int b,
5+
int c,
6+
int d) { }
7+
8+
void loop() {}
9+

src/arduino.cc/builder/test/try_build_of_problematic_sketch_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ func TestTryBuild037(t *testing.T) {
195195
tryBuild(t, "sketch_with_externC", "sketch_with_externC.ino")
196196
}
197197

198+
func TestTryBuild038(t *testing.T) {
199+
tryBuild(t, "sketch_with_multiline_prototypes", "sketch_with_multiline_prototypes.ino")
200+
}
201+
198202
func makeDefaultContext(t *testing.T) map[string]interface{} {
199203
DownloadCoresAndToolsAndLibraries(t)
200204

0 commit comments

Comments
 (0)