Add another test file from #43

This commit is contained in:
Ben Jackson 2019-07-24 21:17:58 +01:00
commit 44b8100078
3 changed files with 20 additions and 4 deletions

11
tests/testdata/cpp/simple/variables.cpp vendored Normal file
View file

@ -0,0 +1,11 @@
#include <iostream>
int main() {
std::cout << "Hello world!" << std::endl;
int a = 1;
++a;
int& b = a;
++a;
std::cout << "a: " << a << " b: " << b << std::endl;
return 0;
}