Add another test file from #43
This commit is contained in:
parent
13f9e1f036
commit
44b8100078
3 changed files with 20 additions and 4 deletions
11
tests/testdata/cpp/simple/variables.cpp
vendored
Normal file
11
tests/testdata/cpp/simple/variables.cpp
vendored
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue