diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-08 21:46:16 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-08 21:46:16 +0000 |
commit | bb4bf88c4cd66e1393b771e1c628e03f8718f4d2 (patch) | |
tree | 56a487c2d5c324338e2eaf003172baf05b94024d /gcc/testsuite/gcc.dg/parse-error-3.c | |
parent | 7deddfded2d013c07a639873a4c90bfed40fd03e (diff) | |
download | gcc-bb4bf88c4cd66e1393b771e1c628e03f8718f4d2.tar.gz |
2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 166453
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@166454 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/parse-error-3.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/parse-error-3.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/parse-error-3.c b/gcc/testsuite/gcc.dg/parse-error-3.c new file mode 100644 index 00000000000..1a463b5dd6b --- /dev/null +++ b/gcc/testsuite/gcc.dg/parse-error-3.c @@ -0,0 +1,14 @@ +/* PR c/43384 */ +/* { dg-do "compile" } */ + +void c_direct(par) + void *par = &&lab; /* { dg-error "is initialized|non-standard|outside of" } */ +{} + +void foo(p, q) + int *p = &q; /* { dg-error "initialized|undeclared" } */ +{} + +void bar(i) + int j = i; /* { dg-error "initialized|undeclared|no such parameter" } */ +{} |