1#! /bin/sh
2
3# basic.sh:  Testing for running cp
4#              is specified by an absolute path name.
5
6# Import common functions & definitions.
7. ../common/test-common
8
9LC_ALL=C export LC_ALL
10
11#d=`../testutils/realpwd`
12
13#do_outerr B "${cpp} t.c" 0 t.i t.e
14
15#
16# Check filename "\"
17#
18do_outerr B01 "${cpp} t01.c" 0 t01.i t01.e
19
20#
21# Check __LINE__, __FILE__
22#
23do_outerr B02 "${cpp} t02.c" 1 t02.i t02.e
24do_outerr B03 "${cpp} t03.c" 0 t03.i t03.e
25do_outerr B03a "${cpp} t03a.c" 0 t03a.i t03a.e
26
27#
28# Check #if
29#
30do_outerr B04 "${cpp} t04.c" 0 t04.i t04.e
31do_outerr B05 "${cpp} t05.c" 0 t05.i t05.e
32
33#
34# Check concat macro
35# Note that the closed Sun CPP prints an error message:
36#	t06a.c: line 5: missing */
37# we should do that as well in the future.
38#
39do_outerr B06a "${cpp} t06a.c" 0 t06a.i t06a.e
40do_outerr B06b "${cpp} t06b.c" 0 t06b.i t06b.e
41
42#
43# Check character 0xFE (�)
44#
45do_outerr B07 "${cpp} t07.c" 0 t07.i t07.e
46do_outerr B08 "${cpp} t08.c" 0 t08.i t08.e
47
48#
49# Check extra text after cpp directive
50#
51do_outerr B09 "${cpp} t09.c" 0 t09.i t09.e
52do_outerr B09a "${cpp} -p t09.c" 0 t09.i t09.e2
53
54success
55