diff options
author | Joseph Myers <joseph@codesourcery.com> | 2009-05-03 15:07:41 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2009-05-03 15:07:41 +0100 |
commit | fa5da7dee34affe9a2bbf01350845b803e493e0c (patch) | |
tree | c88e41715d209f86ef9fef3ae5a484b7788fc273 /gcc/testsuite/gcc.dg | |
parent | 2ddd5020a18df527dd769c8513697d59671ad154 (diff) | |
download | gcc-fa5da7dee34affe9a2bbf01350845b803e493e0c.zip gcc-fa5da7dee34affe9a2bbf01350845b803e493e0c.tar.gz gcc-fa5da7dee34affe9a2bbf01350845b803e493e0c.tar.bz2 |
c-common.c (reswords): Add _Imaginary.
* c-common.c (reswords): Add _Imaginary.
* c-common.c (enum rid): Add RID_IMAGINARY.
testsuite:
* gcc.dg/c99-complex-3.c: New test.
From-SVN: r147075
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/c99-complex-3.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/c99-complex-3.c b/gcc/testsuite/gcc.dg/c99-complex-3.c new file mode 100644 index 0000000..f1f7a1f --- /dev/null +++ b/gcc/testsuite/gcc.dg/c99-complex-3.c @@ -0,0 +1,7 @@ +/* Test for _Imaginary: when imaginary types are not implemented, this + is still a keyword and must give a syntax error if used rather than + being treated as an identifier. */ +/* { dg-do compile } */ +/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */ + +float _Imaginary; /* { dg-error "expected" } */ |