diff --git a/-top.cpp b/-top.cpp new file mode 100644 index 0000000..badfc6f --- /dev/null +++ b/-top.cpp @@ -0,0 +1 @@ +static int top_dash() { return 1; } diff --git a/cap/many.cpp b/cap/many.cpp index 31e1e37..3f88898 100644 --- a/cap/many.cpp +++ b/cap/many.cpp @@ -33,3 +33,4 @@ int many(int x) { total += 14; return total; } +// touched diff --git a/incdemo/use2.cpp b/incdemo/use2.cpp new file mode 100644 index 0000000..c1b8a86 --- /dev/null +++ b/incdemo/use2.cpp @@ -0,0 +1,2 @@ +#include "missing_lib.h" +static int use_two() { return lib_value(); } diff --git a/src/fixits.cpp b/src/fixits.cpp new file mode 100644 index 0000000..cc26d77 --- /dev/null +++ b/src/fixits.cpp @@ -0,0 +1,12 @@ +static int fixits(int x, const int const* p) +{ + if (p == 0) { + return 0; + } + if (x > 1) { + return 1; + } + { + return 2; + } +} diff --git a/src/demo.cpp b/src/moved_demo.cpp similarity index 100% rename from src/demo.cpp rename to src/moved_demo.cpp diff --git a/src/no_final_newline.cpp b/src/no_final_newline.cpp new file mode 100644 index 0000000..71aeae0 --- /dev/null +++ b/src/no_final_newline.cpp @@ -0,0 +1,7 @@ +#include +static int added() +{ + int const x = 1; + printf("%d", x); + return x; +} \ No newline at end of file diff --git a/stress/latin1.cpp b/stress/latin1.cpp index b0a6c97..605eb49 100644 --- a/stress/latin1.cpp +++ b/stress/latin1.cpp @@ -4,3 +4,4 @@ int f( int x ){ int y=x*2; return y ;} int main(){ char* p = NULL; printf("%d\n",f(3)); return 0;} +static int edited_latin1() { return 3; } diff --git a/stress/with space.cpp b/stress/with space.cpp index d8e5ccf..787c2f5 100644 --- a/stress/with space.cpp +++ b/stress/with space.cpp @@ -3,3 +3,4 @@ int f( int x ){ int y=x*2; return y ;} int main(){ char* p = NULL; printf("%d\n",f(3)); return 0;} +static int edited_space() { return 1; }