From: Dodji Seketeli Date: Fri, 28 Sep 2012 16:41:59 +0000 (+0000) Subject: Move testsuite/c-c++-common/Wunused-local-typedefs-2.c to testsuite/g++.dg/warn/Wunus... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a139548ea7f09d566e01220812350395693ea286;p=gcc.git Move testsuite/c-c++-common/Wunused-local-typedefs-2.c to testsuite/g++.dg/warn/Wunused-local-typedefs-3.C gcc/testsuite/ * g++.dg/warn/Wunused-local-typedefs-3.C: Move the c++-only test gcc/testsuite/c-c++-common/Wunused-local-typedefs-2.c to here. From-SVN: r191832 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 22ff3f58ef0..4a5af28a765 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2012-09-28 Dodji Seketeli + * g++.dg/warn/Wunused-local-typedefs-3.C: Move the c++-only test + gcc/testsuite/c-c++-common/Wunused-local-typedefs-2.c to here. + PR c++/54372 - unused attribute inactive on dependant entities * c-c++-common/Wunused-local-typedefs-2.c: New test. diff --git a/gcc/testsuite/c-c++-common/Wunused-local-typedefs-2.c b/gcc/testsuite/c-c++-common/Wunused-local-typedefs-2.c deleted file mode 100644 index 77bacd788ba..00000000000 --- a/gcc/testsuite/c-c++-common/Wunused-local-typedefs-2.c +++ /dev/null @@ -1,35 +0,0 @@ -/* Origin PR c++/54372 - { dg-options "-Wunused-local-typedefs" } - { dg-do compile } -*/ - -template -void f2() -{ - typedef T t __attribute__((unused)); -} - -class S -{ - template - void f4() - { - typedef T t __attribute__((unused)); - } -}; - -template -class tS -{ - void f() - { - typedef T t2 __attribute__((unused)); - } - - template - void f2() - { - typedef T t1 __attribute__((unused)); - typedef U t2 __attribute__((unused)); - } -}; diff --git a/gcc/testsuite/g++.dg/warn/Wunused-local-typedefs-3.C b/gcc/testsuite/g++.dg/warn/Wunused-local-typedefs-3.C new file mode 100644 index 00000000000..77bacd788ba --- /dev/null +++ b/gcc/testsuite/g++.dg/warn/Wunused-local-typedefs-3.C @@ -0,0 +1,35 @@ +/* Origin PR c++/54372 + { dg-options "-Wunused-local-typedefs" } + { dg-do compile } +*/ + +template +void f2() +{ + typedef T t __attribute__((unused)); +} + +class S +{ + template + void f4() + { + typedef T t __attribute__((unused)); + } +}; + +template +class tS +{ + void f() + { + typedef T t2 __attribute__((unused)); + } + + template + void f2() + { + typedef T t1 __attribute__((unused)); + typedef U t2 __attribute__((unused)); + } +};