+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
+++ /dev/null
-/* { 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; }
-
+++ /dev/null
-// 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" }
-}
-
-
--- /dev/null
+/* { 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());
+}
--- /dev/null
+/* { 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; }
+
--- /dev/null
+// 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" }
+}
+
+
+++ /dev/null
-/* { 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());
-}