File: empty_argument.sh

package info (click to toggle)
bear 3.1.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,904 kB
  • sloc: cpp: 9,184; sh: 706; ansic: 497; python: 175; makefile: 29
file content (14 lines) | stat: -rw-r--r-- 390 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env sh

# REQUIRES: shell
# RUN: cd %T; %{bear} --verbose --output %t.json -- %{shell} %s
# RUN: assert_compilation %t.json count -eq 0

touch empty_argument_1.c empty_argument_2.c

# empty argument for a command
$ECHO "" "";

# empty argument for a compiler
$CC -c -o empty_argument_1.o empty_argument_1.c "" || true;
$CC -c -o empty_argument_2.o "" empty_argument_2.c || true;