diff options
author | 2007-09-21 06:24:05 +0000 | |
---|---|---|
committer | 2007-09-21 06:24:05 +0000 | |
commit | 4b4d097a5f2a29bccf86213e483135935455d2a9 (patch) | |
tree | 29b228048d07c71d3c06ed592f88b0dd35c6d9b3 | |
parent | add the other case Ted mentioned (diff) | |
download | wireguard-openbsd-4b4d097a5f2a29bccf86213e483135935455d2a9.tar.xz wireguard-openbsd-4b4d097a5f2a29bccf86213e483135935455d2a9.zip |
already fixed include problem
-rw-r--r-- | regress/usr.bin/pcc/cc/cpp/Makefile | 3 | ||||
-rw-r--r-- | regress/usr.bin/pcc/cc/cpp/skip001.c | 3 | ||||
-rw-r--r-- | regress/usr.bin/pcc/cc/cpp/skip001.out | 8 | ||||
-rw-r--r-- | regress/usr.bin/pcc/cc/cpp/subdir/include.h | 1 |
4 files changed, 15 insertions, 0 deletions
diff --git a/regress/usr.bin/pcc/cc/cpp/Makefile b/regress/usr.bin/pcc/cc/cpp/Makefile new file mode 100644 index 00000000000..391184cf914 --- /dev/null +++ b/regress/usr.bin/pcc/cc/cpp/Makefile @@ -0,0 +1,3 @@ +# $OpenBSD: Makefile,v 1.1 2007/09/21 06:24:05 otto Exp $ +regress: + cc -E -I subdir skip001.c | cmp - ${.CURDIR}/skip001.out diff --git a/regress/usr.bin/pcc/cc/cpp/skip001.c b/regress/usr.bin/pcc/cc/cpp/skip001.c new file mode 100644 index 00000000000..2b6b4c440b5 --- /dev/null +++ b/regress/usr.bin/pcc/cc/cpp/skip001.c @@ -0,0 +1,3 @@ +#include "include.h" /* line which is bound to trash +yytext */ + diff --git a/regress/usr.bin/pcc/cc/cpp/skip001.out b/regress/usr.bin/pcc/cc/cpp/skip001.out new file mode 100644 index 00000000000..b4f13a42d60 --- /dev/null +++ b/regress/usr.bin/pcc/cc/cpp/skip001.out @@ -0,0 +1,8 @@ +# 1 "skip001.c" +# 1 "<built-in>" +# 1 "<command line>" +# 1 "skip001.c" + +# 1 "subdir/include.h" 1 +line from include.h +# 3 "skip001.c" 2 diff --git a/regress/usr.bin/pcc/cc/cpp/subdir/include.h b/regress/usr.bin/pcc/cc/cpp/subdir/include.h new file mode 100644 index 00000000000..da14e47f9f1 --- /dev/null +++ b/regress/usr.bin/pcc/cc/cpp/subdir/include.h @@ -0,0 +1 @@ +line from include.h |