diff options
author | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-14 21:35:47 +0000 |
---|---|---|
committer | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-14 21:35:47 +0000 |
commit | 2fa95deeefd95f5c77c0a0ac67a13079f087c37a (patch) | |
tree | 30cd3681486ae4b2227a082c326aee6d97bb53a6 /gcc/testsuite/gcc.dg/for-1.c | |
parent | 2d42b7d7e7dc1636970d6443d3a3c7e22159c0e3 (diff) | |
download | gcc-2fa95deeefd95f5c77c0a0ac67a13079f087c37a.tar.gz |
PR c/23439
* c-parser.c (c_parser_for_statement): Use location of RID_FOR
to initialize loc.
* gcc.dg/for-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105422 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/for-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/for-1.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/for-1.c b/gcc/testsuite/gcc.dg/for-1.c new file mode 100644 index 00000000000..3df943976fc --- /dev/null +++ b/gcc/testsuite/gcc.dg/for-1.c @@ -0,0 +1,7 @@ +/* PR c/23439 */ +/* Origin: Serge Belyshev <belyshev@depni.sinp.msu.ru> */ +/* { dg-do compile } */ +/* { dg-options "" } */ + +# 0 "for-1.c" +void foo() { for /* { dg-error "at end of input" "" { target *-*-* } 0 } */ |