Skip to content

Fix prototypes line insertion logic #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add test for fake function pointers
  • Loading branch information
facchinm committed Jan 20, 2017
commit 9165d1bf3849eefbca96f6bf4d70a26f0ec7d9a4
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
template< uint16_t nBuffSize >
class Foo{
public:

template< uint16_t N >
Foo &operator +=( const Foo<N> &ref ){
//...
return *this;
}
};

Foo<64> a;
Foo<32> b;

void setup(){
a += b;
}

void loop(){}
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ func TestTryBuild039(t *testing.T) {
tryBuildWithContext(t, ctx, "sketch12", "sketch12.ino")
}

func TestTryBuild040(t *testing.T) {
tryBuild(t, "sketch_with_fake_function_pointer", "sketch_with_fake_function_pointer.ino")
}

func makeDefaultContext(t *testing.T) *types.Context {
DownloadCoresAndToolsAndLibraries(t)

Expand Down