Add another test file from #43
This commit is contained in:
parent
13f9e1f036
commit
44b8100078
3 changed files with 20 additions and 4 deletions
1
tests/testdata/cpp/simple/.gitignore
vendored
1
tests/testdata/cpp/simple/.gitignore
vendored
|
|
@ -1 +1,2 @@
|
|||
simple
|
||||
variables
|
||||
|
|
|
|||
12
tests/testdata/cpp/simple/Makefile
vendored
12
tests/testdata/cpp/simple/Makefile
vendored
|
|
@ -1,7 +1,11 @@
|
|||
CXXFLAGS=-g -O0
|
||||
CXXFLAGS=-g -O0 -std=c++17
|
||||
|
||||
simple: simple.cpp
|
||||
.PHONY: all
|
||||
|
||||
TARGETS=simple variables
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
clean:
|
||||
rm -f simple
|
||||
rm -rf simple.dSYM
|
||||
rm -f $(TARGETS)
|
||||
rm -rf $(TARGETS:%=%.dSYM)
|
||||
|
|
|
|||
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