mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Adding some test cases for the pre-processor. (Total hack, requires copying and pasting code from the actual app source into another file and running a shell script, but it's better than nothing.)
This commit is contained in:
35
app/preproc/test/data/foo7.cpp
Normal file
35
app/preproc/test/data/foo7.cpp
Normal file
@ -0,0 +1,35 @@
|
||||
#include "hello" /* for blah */
|
||||
|
||||
int x[] = { 1, 2, 3 };
|
||||
int y[2] = { 1, 2 };
|
||||
|
||||
class Foo {
|
||||
public:
|
||||
Foo();
|
||||
Foo(int x);
|
||||
int bar() { return x; }
|
||||
private:
|
||||
int x;
|
||||
};
|
||||
|
||||
Foo::Foo(int x) : x(x) {}
|
||||
|
||||
Foo::Foo() {
|
||||
x = 0;
|
||||
}
|
||||
|
||||
Foo foo(3);
|
||||
Foo bar = Foo(2);
|
||||
|
||||
void setup() {
|
||||
}
|
||||
|
||||
void
|
||||
loop (
|
||||
|
||||
)
|
||||
|
||||
|
||||
|
||||
{
|
||||
}
|
Reference in New Issue
Block a user