Skip to content

Commit 7d503b2

Browse files
committed
Adding example which breaks for both class-body/namespaced compilation, but shows private vs namespace issue.
1 parent ac183cd commit 7d503b2

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

Diff for: examples/Breaks_6/Breaks_6.ino

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include <Arduino_Threads.h>
2+
3+
void setup()
4+
{
5+
Thread.start();
6+
}
7+
8+
void loop()
9+
{
10+
int const my_var = var;
11+
}

Diff for: examples/Breaks_6/SharedVariables.h

Whitespace-only changes.

Diff for: examples/Breaks_6/Thread.inot

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
void setup()
2+
{
3+
4+
}
5+
6+
void loop()
7+
{
8+
9+
}
10+
11+
int var = 0;

0 commit comments

Comments
 (0)