diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-12 19:46:49 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-12 19:46:49 +0000 |
commit | 3e2a04b5eaabe5eab46f35bb0ea4a06804c44f7d (patch) | |
tree | 98deba1dfe7c6b9c082beb511fe09a10db6319c8 /gcc/testsuite/gcc.dg/cpp | |
parent | b2f42a98738cbf1cf2166d6d7d575c1a08a0d245 (diff) | |
download | gcc-3e2a04b5eaabe5eab46f35bb0ea4a06804c44f7d.tar.gz |
libcpp
PR preprocessor/28227:
* directives.c (lex_macro_node): Added 'is_def_or_undef'
argument.
(do_define): Update.
(do_undef): Update.
(do_ifdef): Update.
(do_ifndef): Update.
gcc/testsuite
PR preprocessor/28227:
* gcc.dg/cpp/pr28227.c: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120731 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/pr28227.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/pr28227.c b/gcc/testsuite/gcc.dg/cpp/pr28227.c new file mode 100644 index 00000000000..3b70dd53920 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/pr28227.c @@ -0,0 +1,10 @@ +/* Copyright (C) 2007 Free Software Foundation, Inc. */ +/* PR preprocessor/28227 */ + +/* { dg-do preprocess } */ +#ifdef defined +#endif +#ifndef defined +#endif + +int x; |