Skip to content

Commit 2d3f2ee

Browse files
committed
Add test for multiline function declaration
1 parent a07ea16 commit 2d3f2ee

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
void setup() {
2+
// put your setup code here, to run once:
3+
test();
4+
}
5+
6+
void loop() {
7+
// put your main code here, to run repeatedly:
8+
9+
}
10+
11+
extern "C" {
12+
void test() {}
13+
}

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

+4
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ func TestTryBuild039(t *testing.T) {
205205
tryBuildWithContext(t, ctx, "sketch12", "sketch12.ino")
206206
}
207207

208+
func TestTryBuild040(t *testing.T) {
209+
tryBuild(t, "sketch_with_externC_multiline", "sketch_with_externC_multiline.ino")
210+
}
211+
208212
func makeDefaultContext(t *testing.T) *types.Context {
209213
DownloadCoresAndToolsAndLibraries(t)
210214

0 commit comments

Comments
 (0)