diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-06 17:41:34 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-06 17:41:34 +0000 |
commit | 2672a12047968881f3eef644f0f5f847ef477e6e (patch) | |
tree | 35692470e9492f5a4cce75b449972a39e655b24a /gcc/testsuite/c-c++-common/Wunused-var-6.c | |
parent | eceee1ca8d11150442029d62d92be0e344973de2 (diff) | |
download | gcc-2672a12047968881f3eef644f0f5f847ef477e6e.tar.gz |
* gcc.dg/Wunused-var-8.c: Move to...
* c-c++-common/Wunused-var-6.c: ... here. New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159118 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/c-c++-common/Wunused-var-6.c')
-rw-r--r-- | gcc/testsuite/c-c++-common/Wunused-var-6.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/Wunused-var-6.c b/gcc/testsuite/c-c++-common/Wunused-var-6.c new file mode 100644 index 00000000000..1217719a298 --- /dev/null +++ b/gcc/testsuite/c-c++-common/Wunused-var-6.c @@ -0,0 +1,15 @@ +/* PR c/43981 */ +/* { dg-do compile } */ +/* { dg-options "-Wunused" } */ + +void g (char *); + +char +f (int a) +{ + int len = a * 3; + char t[len]; + + g (t); + return t[0]; +} |