str_empty.C: Move...
authorRichard Guenther <rguenther@suse.de>
Thu, 31 May 2007 09:37:40 +0000 (09:37 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 31 May 2007 09:37:40 +0000 (09:37 +0000)
2007-05-31  Richard Guenther  <rguenther@suse.de>

* g++.dg/other/str_empty.C: Move...
* g++.dg/other/pr30567.C: Move...
* g++.dg/tree-ssa/pr27218.C: Move...
* g++.dg/torture: ...here and remove dg-options.

From-SVN: r125220

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr30567.C [deleted file]
gcc/testsuite/g++.dg/other/str_empty.C [deleted file]
gcc/testsuite/g++.dg/torture/pr27218.C [new file with mode: 0644]
gcc/testsuite/g++.dg/torture/pr30567.C [new file with mode: 0644]
gcc/testsuite/g++.dg/torture/str_empty.C [new file with mode: 0644]
gcc/testsuite/g++.dg/tree-ssa/pr27218.C [deleted file]

index 70853cd119bfd1450c2e92af1eda7b1b47774c8f..e1e31c0b909b8f576f0de701baf0170e0002e837 100644 (file)
@@ -1,3 +1,10 @@
+2007-05-31  Richard Guenther  <rguenther@suse.de>
+
+       * g++.dg/other/str_empty.C: Move...
+       * g++.dg/other/pr30567.C: Move...
+       * g++.dg/tree-ssa/pr27218.C: Move...
+       * g++.dg/torture: ...here and remove dg-options.
+
 2007-05-31  Paolo Carlini  <pcarlini@suse.de>
 
        PR c++/32158
diff --git a/gcc/testsuite/g++.dg/other/pr30567.C b/gcc/testsuite/g++.dg/other/pr30567.C
deleted file mode 100644 (file)
index 626d27b..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-O -finline-functions -fstrict-aliasing" } */
-
-template <typename T>
-struct const_ref
-{
-  const T* begin;
-  const_ref(const T* b) : begin(b) {}
-};
-
-template <typename T>
-T sum(const_ref<T> const& a)
-{
-  T result = 0;
-  for(unsigned i=0;i<1;i++) result += a.begin[i];
-  return result;
-}
-
-struct tiny_plain
-{
-  int elems[2];
-  tiny_plain() { elems[0]=1; }
-};
-
-struct vec3 : tiny_plain {};
-
-struct mat3
-{
-  int type() const { return sum(const_ref<int>(vec3().elems)) == 1; }
-};
-
-int main() { return mat3().type() ? 0 : 1; }
-
diff --git a/gcc/testsuite/g++.dg/other/str_empty.C b/gcc/testsuite/g++.dg/other/str_empty.C
deleted file mode 100644 (file)
index fc2cb1d..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// PR c++/31617
-// Segfault in integer_zerop
-// Origin: Andrew Pinski  <andrew_pinski@playstation.sony.com>
-// { dg-do compile }
-// { dg-options "-O2" }
-
-struct polynomial {
-  ~polynomial ();
-};
-
-void spline_rep1 ()
-{
-  new polynomial[0];  // { dg-warning "allocating zero-element array" }
-}
-
-
diff --git a/gcc/testsuite/g++.dg/torture/pr27218.C b/gcc/testsuite/g++.dg/torture/pr27218.C
new file mode 100644 (file)
index 0000000..b1e18dd
--- /dev/null
@@ -0,0 +1,16 @@
+/* { dg-do compile } */
+
+struct Vector
+{
+    double _x, _y;
+};
+typedef Vector Point;
+Vector d;
+static inline Vector f(void)
+{
+  return d;
+}
+void add_duck (void)
+{
+    new Point (f());
+}
diff --git a/gcc/testsuite/g++.dg/torture/pr30567.C b/gcc/testsuite/g++.dg/torture/pr30567.C
new file mode 100644 (file)
index 0000000..389daf3
--- /dev/null
@@ -0,0 +1,32 @@
+/* { dg-do run } */
+
+template <typename T>
+struct const_ref
+{
+  const T* begin;
+  const_ref(const T* b) : begin(b) {}
+};
+
+template <typename T>
+T sum(const_ref<T> const& a)
+{
+  T result = 0;
+  for(unsigned i=0;i<1;i++) result += a.begin[i];
+  return result;
+}
+
+struct tiny_plain
+{
+  int elems[2];
+  tiny_plain() { elems[0]=1; }
+};
+
+struct vec3 : tiny_plain {};
+
+struct mat3
+{
+  int type() const { return sum(const_ref<int>(vec3().elems)) == 1; }
+};
+
+int main() { return mat3().type() ? 0 : 1; }
+
diff --git a/gcc/testsuite/g++.dg/torture/str_empty.C b/gcc/testsuite/g++.dg/torture/str_empty.C
new file mode 100644 (file)
index 0000000..0a6aabf
--- /dev/null
@@ -0,0 +1,15 @@
+// PR c++/31617
+// Segfault in integer_zerop
+// Origin: Andrew Pinski  <andrew_pinski@playstation.sony.com>
+// { dg-do compile }
+
+struct polynomial {
+  ~polynomial ();
+};
+
+void spline_rep1 ()
+{
+  new polynomial[0];  // { dg-warning "allocating zero-element array" }
+}
+
+
diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr27218.C b/gcc/testsuite/g++.dg/tree-ssa/pr27218.C
deleted file mode 100644 (file)
index 644d2fc..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-O2" } */
-
-struct Vector
-{
-    double _x, _y;
-};
-typedef Vector Point;
-Vector d;
-static inline Vector f(void)
-{
-  return d;
-}
-void add_duck (void)
-{
-    new Point (f());
-}