Debian Codegraph @

t/logs/bad-multiline

raw
1 dpkg-buildpackage: source package test
2
3 # Command over multiple lines.
4 gcc \
5 -g -O2 -fstack-protector-strong\
6 -fstack-clash-protection -Wformat-security\
7 -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-a.c
8 gcc -g -O2 -fstack-clash-protection -Wformat -Wformat-security -Werror=format-security\
9 -D_FORTIFY_SOURCE=2\
10 -c test-b.c
11 gcc -g -O2 -fstack-protector-strong -fstack-clash-protection -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -c test-c.c
12 gcc -Wl,-z,relro -o test test-a.o test-b.o test-c.o\
13 -ltest
14 gcc -o\
15 test test-c.o test-a.o test-b.o\
16 -ltest
17 gcc -o \
18 test test-c.o test-b.o test-a.o\
19
20 gcc -o \
21 test test-b.o test-a.o test-c.c\
22
23
24 # Multiple commands in a single line.
25 gcc -g -O2 -fstack-protector-strong -fstack-clash-protection -Wformat -Wformat-security -Werror=format-security -c test-a.c; gcc -D_FORTIFY_SOURCE=2 -c test-b.c
26 gcc -g -O2 -fstack-protector-strong -fstack-clash-protection -Wformat -D_FORTIFY_SOURCE=2 -c test-a.c ; gcc -Wformat-security -Werror=format-security -c test-b.c
27 gcc -g -fstack-protector-strong -fstack-clash-protection -Wformat -Wformat-security -Werror=format-security -c test-a.c;\
28 gcc -O2 -D_FORTIFY_SOURCE=2 -c test-b.c
29 gcc -g -O2 -fstack-clash-protection -Wformat -Wformat-security -Werror=format-security -c test-a.c ; \
30 gcc -D_FORTIFY_SOURCE=2 -c test-b.c
31 # Escaped ";" - not really useful, just to check it works.
32 gcc -g -O2 -fstack-protector-strong -fstack-clash-protection -Wformat -Wformat-security \; -Werror=format-security -D_FORTIFY_SOURCE=1 -c test-a.c
33
34
35 if ./bin-aux/missing --run makeinfo \
36 test.texi > test.info; \
37 then \
38 echo good; \
39 else
40 echo bad; \
41 fi; \
42 gcc -g -O2 -fstack-protector-strong -fstack-clash-protection -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=1 -c test-b.c
43
44 gcc -c test.c `echo -g -O2 -fstack-protector-strong -fstack-clash-protection echo -Wformat -Wformat-security -Werror=format-security | sed 's/.../; s/.../'` -o test.o
45 gcc -c test.c `echo -g -O2 -fstack-protector-strong -fstack-clash-protection echo -Wformat -Wformat-security -Werror=format-security | sed "s/.../; s/.../"` -o test.o