Move testsuite/c-c++-common/Wunused-local-typedefs-2.c to testsuite/g++.dg/warn/Wunus...
authorDodji Seketeli <dodji@redhat.com>
Fri, 28 Sep 2012 16:41:59 +0000 (16:41 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Fri, 28 Sep 2012 16:41:59 +0000 (18:41 +0200)
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

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wunused-local-typedefs-2.c [deleted file]
gcc/testsuite/g++.dg/warn/Wunused-local-typedefs-3.C [new file with mode: 0644]

index 22ff3f58ef0fa1c5ff2c7b691172c486d4279d41..4a5af28a7658c05831ff59ec5b1f9d8fcf5cd7a5 100644 (file)
@@ -1,5 +1,8 @@
 2012-09-28  Dodji Seketeli  <dodji@redhat.com>
 
+       * 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 (file)
index 77bacd7..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/*  Origin PR c++/54372
-    { dg-options "-Wunused-local-typedefs" }
-    { dg-do compile }
-*/
-
-template <typename T>
-void f2()
-{
-    typedef T t __attribute__((unused));
-}
-
-class S
-{
-    template <typename T>
-    void f4()
-    {
-       typedef T t __attribute__((unused));
-    }
-};
-
-template <typename T>
-class tS
-{
-    void f()
-    {
-       typedef T t2 __attribute__((unused));
-    }
-
-    template <typename U>
-    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 (file)
index 0000000..77bacd7
--- /dev/null
@@ -0,0 +1,35 @@
+/*  Origin PR c++/54372
+    { dg-options "-Wunused-local-typedefs" }
+    { dg-do compile }
+*/
+
+template <typename T>
+void f2()
+{
+    typedef T t __attribute__((unused));
+}
+
+class S
+{
+    template <typename T>
+    void f4()
+    {
+       typedef T t __attribute__((unused));
+    }
+};
+
+template <typename T>
+class tS
+{
+    void f()
+    {
+       typedef T t2 __attribute__((unused));
+    }
+
+    template <typename U>
+    void f2()
+    {
+       typedef T t1 __attribute__((unused));
+       typedef U t2 __attribute__((unused));
+    }
+};