diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-05 19:58:39 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-05 19:58:39 +0000 |
commit | 2292b3cfadecad9c4b8bf72cbfcf0d624478aac7 (patch) | |
tree | 3d54f3fac62131960b9bc0fcfd664e54c7bfe590 /gcc/testsuite/gcc.dg/complex-2.h | |
parent | 2d7a881f4ed589a3a7dd08f6dde445383700e383 (diff) | |
download | gcc-2292b3cfadecad9c4b8bf72cbfcf0d624478aac7.tar.gz |
* c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
system headers.
testsuite:
* gcc.dg/complex-2.c, gcc.dg/complex-2.h: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88571 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/complex-2.h')
-rw-r--r-- | gcc/testsuite/gcc.dg/complex-2.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/complex-2.h b/gcc/testsuite/gcc.dg/complex-2.h new file mode 100644 index 00000000000..752d7f26d61 --- /dev/null +++ b/gcc/testsuite/gcc.dg/complex-2.h @@ -0,0 +1,6 @@ +/* Allow complex types in system headers even with -std=iso9899:1990 + -pedantic-errors. Header file. */ + +#pragma GCC system_header + +_Complex double x; |