-
-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ported SketchWithStaticAsserts from legacy into integration test
- Loading branch information
1 parent
aa5451b
commit 8e10e90
Showing
4 changed files
with
77 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
26 changes: 26 additions & 0 deletions
26
...ntest/compile_4/testdata/SketchWithStaticAsserts/SketchWithStaticAsserts.preprocessed.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include <Arduino.h> | ||
#line 1 "/home/ale/arduino/arduino-cli/internal/integrationtest/compile_4/testdata/SketchWithStaticAsserts/SketchWithStaticAsserts.ino" | ||
// https://github.com/arduino/arduino-builder/issues/68 | ||
|
||
const int a = 10; | ||
const int b = 20; | ||
|
||
static_assert(a < b, "bar"); | ||
|
||
#line 8 "/home/ale/arduino/arduino-cli/internal/integrationtest/compile_4/testdata/SketchWithStaticAsserts/SketchWithStaticAsserts.ino" | ||
void setup(); | ||
#line 12 "/home/ale/arduino/arduino-cli/internal/integrationtest/compile_4/testdata/SketchWithStaticAsserts/SketchWithStaticAsserts.ino" | ||
void loop(); | ||
#line 15 "/home/ale/arduino/arduino-cli/internal/integrationtest/compile_4/testdata/SketchWithStaticAsserts/SketchWithStaticAsserts.ino" | ||
void test(); | ||
#line 8 "/home/ale/arduino/arduino-cli/internal/integrationtest/compile_4/testdata/SketchWithStaticAsserts/SketchWithStaticAsserts.ino" | ||
void setup() { | ||
test(); | ||
} | ||
|
||
void loop() { | ||
} | ||
|
||
void test() { | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters