]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - t/logs/bad-multiline
First working version.
[blhc/blhc.git] / t / logs / bad-multiline
diff --git a/t/logs/bad-multiline b/t/logs/bad-multiline
new file mode 100644 (file)
index 0000000..490690a
--- /dev/null
@@ -0,0 +1,21 @@
+# Command over multiple lines.
+gcc \
+               -g -O2 -fstack-protector\
+    --param=ssp-buffer-size=4 -Wformat-security\
+-Werror=format-security -D_FORTIFY_SOURCE=2 -c test-a.c
+gcc -g -O2 -fstack-protector -Wformat -Wformat-security -Werror=format-security\
+-D_FORTIFY_SOURCE=2\
+-c test-b.c
+gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -c test-c.c
+gcc -Wl,-z,relro -o test test-a.o test-b.o test-c.o\
+       -ltest
+
+# Multiple commands in a single line.
+gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -c test-a.c; gcc -D_FORTIFY_SOURCE=2 -c test-b.c
+gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -D_FORTIFY_SOURCE=2 -c test-a.c ; gcc -Wformat-security -Werror=format-security -c test-b.c
+gcc -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -c test-a.c;\
+gcc -O2 -D_FORTIFY_SOURCE=2 -c test-b.c
+gcc -g -O2 --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -c test-a.c ; \
+gcc -D_FORTIFY_SOURCE=2 -fstack-protector -c test-b.c
+# Escaped ";" - not really useful, just to check it works.
+gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security \; -Werror=format-security -D_FORTIFY_SOURCE=1 -c test-a.c