Skip to content

Commit a967b01

Browse files
committed
Add more tests for extern "C" + multiline prototype generation
1 parent 1154155 commit a967b01

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

Diff for: src/arduino.cc/builder/test/sketch_with_externC_multiline/sketch_with_externC_multiline.ino

+51
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ void setup() {
66
void loop() {
77
// put your main code here, to run repeatedly:
88
test2();
9+
test3();
10+
test4();
11+
test5(1,2,3);
12+
test6();
13+
test7();
14+
test8();
15+
test9(4,5);
16+
test10();
917
}
1018

1119
void
@@ -14,3 +22,46 @@ test() {}
1422
extern "C" {
1523
void test2() {}
1624
}
25+
26+
void
27+
// comment
28+
test3() {}
29+
30+
extern "C"
31+
{
32+
void test4() {}
33+
}
34+
35+
void
36+
test5(int a,
37+
int b,
38+
int c)
39+
{
40+
41+
}
42+
43+
extern "C"
44+
45+
{
46+
void test6() {}
47+
}
48+
49+
void /* comment */
50+
test7() {}
51+
52+
void
53+
/*
54+
multi
55+
line
56+
comment
57+
*/
58+
test8() {}
59+
60+
extern "C" void test10() {
61+
62+
};
63+
64+
void
65+
/* comment */
66+
test9(int a,
67+
int b) {}

0 commit comments

Comments
 (0)