summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/complex-2.h
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-05 19:58:39 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-05 19:58:39 +0000
commit2292b3cfadecad9c4b8bf72cbfcf0d624478aac7 (patch)
tree3d54f3fac62131960b9bc0fcfd664e54c7bfe590 /gcc/testsuite/gcc.dg/complex-2.h
parent2d7a881f4ed589a3a7dd08f6dde445383700e383 (diff)
downloadgcc-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.h6
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;