diff options
Diffstat (limited to 'support/valdiag/tests/bug-2773.c')
| -rw-r--r-- | support/valdiag/tests/bug-2773.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/support/valdiag/tests/bug-2773.c b/support/valdiag/tests/bug-2773.c new file mode 100644 index 0000000..7ccf7ab --- /dev/null +++ b/support/valdiag/tests/bug-2773.c @@ -0,0 +1,17 @@ +/* bug-2773.c + + Missing diagnostic on duplicate paramter name + */ + +#ifdef TEST1 +extern void *h2 (int g2, int g2); /* ERROR */ +#endif + +#ifdef TEST2 +int i; + +extern void *h (int g, int g) { /* ERROR */ + i = g; +} +#endif + |
