Skip to content

Commit dfd5f9b

Browse files
committed
Some test sketches have been changed to build without errors
This is not currently tested, a specific try-build-test will be added later. Signed-off-by: Cristian Maglie <[email protected]>
1 parent 0ccee37 commit dfd5f9b

8 files changed

+18
-9
lines changed

src/arduino.cc/builder/test/sketch10/sketch.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
#include <IRremoteInt.h>
33

44
void setup() {}
5-
void main() {}
5+
void loop() {}

src/arduino.cc/builder/test/sketch2/SketchWithIfDef.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#define DEBUG 1
22
#define DISABLED 0
33

4-
typedef MyType int;
4+
typedef int MyType;
55

66
#if DISABLED
77
#include <debug.h>
@@ -47,4 +47,4 @@ void disabledIsDefined() {
4747

4848
int useMyType(MyType type) {
4949

50-
}
50+
}

src/arduino.cc/builder/test/sketch2/SketchWithIfDef.preprocessed.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#define DEBUG 1
55
#define DISABLED 0
66

7-
typedef MyType int;
7+
typedef int MyType;
88

99
#if DISABLED
1010
#include <debug.h>
@@ -62,3 +62,4 @@ void disabledIsDefined() {
6262
int useMyType(MyType type) {
6363

6464
}
65+

src/arduino.cc/builder/test/sketch2/SketchWithIfDef.resolved.directives.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#define DEBUG 1
55
#define DISABLED 0
66

7-
typedef MyType int;
7+
typedef int MyType;
88

99

1010

@@ -52,3 +52,4 @@ int useMyType(MyType type) {
5252

5353
}
5454

55+

src/arduino.cc/builder/test/sketch5/IncludeBetweenMultilineComment.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ void setup()
99
}
1010
void loop()
1111
{
12-
long total1 = cs_13_8.read(30);
12+
long total1 = cs_13_8.capacitiveSensor(30);
1313
Serial.println(total1);
1414
delay(100);
15-
}
15+
}

src/arduino.cc/builder/test/sketch5/IncludeBetweenMultilineComment.preprocessed.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ void setup()
1717
}
1818
void loop()
1919
{
20-
long total1 = cs_13_8.read(30);
20+
long total1 = cs_13_8.capacitiveSensor(30);
2121
Serial.println(total1);
2222
delay(100);
2323
}
24+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class Task {
2+
public:
3+
Task(void (*aCallback)()) {};
4+
};
5+
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
#include "CallbackBug.h"
12
Task t1(&t1Callback);
23
void t1Callback() {}
34
void setup() {}
4-
void loop() {}
5+
void loop() {}

0 commit comments

Comments
 (0)