diff --git a/-top.cpp b/-top.cpp new file mode 100644 index 0000000..4520fad --- /dev/null +++ b/-top.cpp @@ -0,0 +1 @@ +static auto top_dash() -> int { 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/src/fixits.cpp b/src/fixits.cpp new file mode 100644 index 0000000..844f99b --- /dev/null +++ b/src/fixits.cpp @@ -0,0 +1,9 @@ +static auto fixits(int x, const int *p) -> int { + if (p == nullptr) { + 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..ab84a3e --- /dev/null +++ b/src/no_final_newline.cpp @@ -0,0 +1,6 @@ +#include +static auto added() -> int { + 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..e779511 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 auto edited_latin1() -> int { return 3; } diff --git a/stress/with space.cpp b/stress/with space.cpp index d8e5ccf..95939ad 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 auto edited_space() -> int { return 1; }