Skip to content

Commit 3eed66c

Browse files
Test sketch that includes from subfolder
There was already a test for including from inside the `src/` subfolder, but including from other subdirectories should also be supported (even when source files inside those directories are not compiled). This adds a test for this. See also arduino/Arduino#5186. Signed-off-by: Matthijs Kooijman <[email protected]>
1 parent 9d7d1d7 commit 3eed66c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/arduino.cc/builder/test/sketch_with_subfolders/sketch_with_subfolders.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include "subfolder/other.h"
12
#include "src/subfolder/other.h"
23

34
MyClass myClass;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// This file *is* included from the main sketch, even though it is
2+
// outside of the src/ directory.

0 commit comments

Comments
 (0)