1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
# tcc: -C does not reach cpp --------------------------------------------------
tcc -C 2>/dev/null
EOF
ERROR
# tcc: test case below passes without -C --------------------------------------
tcc -n 2>&1
/* foo */
EOF
# tcc: -Xp,-C reaches cpp -----------------------------------------------------
tcc -n -Xp,-C 2>&1
/* foo */
EOF
ERROR
<stdin>:1: syntax error near "/"
# tcsim: -C does not reach any cpp --------------------------------------------
tcsim -C 2>/dev/null
EOF
ERROR
# tcsim: test case below passes without -C ------------------------------------
tcsim -n -XP,-C -Xc,-n 2>&1
dev eth0 {
/* foo */
}
EOF
ERROR
tcc returned no data
# tcsim: -Xp,-C reaches tcc's cpp ---------------------------------------------
tcsim -n -XP,-C -Xc,-n -Xp,-C 2>&1
dev eth0 {
/* foo */
}
EOF
ERROR
<stdin>:2: syntax error near "/"
|