diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-14 20:17:55 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-14 20:17:55 +0000 |
commit | 47f175274591a9f5f384e25a56d4f994e36b368f (patch) | |
tree | 8bda098fc62ead108660a24e4d81f6fd4ff0376b /gcc/testsuite/gcc.dg/cpp | |
parent | 44b0ffc3f6652b62823cc97047e44ca83cbc6651 (diff) | |
download | gcc-47f175274591a9f5f384e25a56d4f994e36b368f.tar.gz |
PR preprocessor/7526
* cpplib.c (run_directive): Kludge so _Pragma dependency works.
testsuite:
* gcc.dg/cpp/_Pragma3.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56332 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/_Pragma3.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/_Pragma3.c b/gcc/testsuite/gcc.dg/cpp/_Pragma3.c new file mode 100644 index 00000000000..7d1b42aab63 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/_Pragma3.c @@ -0,0 +1,11 @@ +/* Copyright (C) 2002 Free Software Foundation, Inc. */ + +/* { dg-do preprocess } */ + +/* Pragma buffers have a NULL "inc" member, which we would dereference + when getting a file's date and time. + + Based on PR 7526. 14 Aug 2002. */ + +#define GCC_PRAGMA(x) _Pragma (#x) +GCC_PRAGMA(GCC dependency "mi1c.h") |