gcc/testsuite/
* gcc.dg/pr65002.C: Move ...
* g++.dg/ipa/pr65002.C: ... here.
From-SVN: r220731
+2015-02-16 Ilya Enkovich <ilya.enkovich@intel.com>
+
+ * gcc.dg/pr65002.C: Move ...
+ * g++.dg/ipa/pr65002.C: ... here.
+
2015-02-14 David Edelsohn <dje.gcc@gmail.com>
* gcc.target/powerpc/pr64205.c: Skip on AIX.
--- /dev/null
+/* PR tree-optimization/65002 */
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+
+namespace fastmath {
+ template <typename T> float floor(const T &) __attribute__((const));
+ template <typename T> float floor(const T &p1) { return p1; }
+}
+using fastmath::floor;
+class A {
+public:
+ A(int, int);
+ virtual int m_fn1(float) const;
+};
+class B : A {
+public:
+ B(int, int p2) : A(entity, p2) {}
+ int m_fn1(float p1) const { long b(floor(p1)); }
+ int entity;
+};
+
+int a;
+void Convert() {
+ if (int *c = 0)
+ B(*c, a);
+}
+++ /dev/null
-/* PR tree-optimization/65002 */
-/* { dg-do compile } */
-/* { dg-options "-O2" } */
-
-namespace fastmath {
- template <typename T> float floor(const T &) __attribute__((const));
- template <typename T> float floor(const T &p1) { return p1; }
-}
-using fastmath::floor;
-class A {
-public:
- A(int, int);
- virtual int m_fn1(float) const;
-};
-class B : A {
-public:
- B(int, int p2) : A(entity, p2) {}
- int m_fn1(float p1) const { long b(floor(p1)); }
- int entity;
-};
-
-int a;
-void Convert() {
- if (int *c = 0)
- B(*c, a);
-}