pr65002.C: Move ...
authorIlya Enkovich <ilya.enkovich@intel.com>
Mon, 16 Feb 2015 10:03:26 +0000 (10:03 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Mon, 16 Feb 2015 10:03:26 +0000 (10:03 +0000)
gcc/testsuite/

* gcc.dg/pr65002.C: Move ...
* g++.dg/ipa/pr65002.C: ... here.

From-SVN: r220731

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr65002.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr65002.C [deleted file]

index 875064beac541c289940e22f418e6a538d8b0ce1..01dc072568895d9ca55bd2e87f83a67db81ffbe8 100644 (file)
@@ -1,3 +1,8 @@
+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.
 2015-02-14  David Edelsohn  <dje.gcc@gmail.com>
 
        * gcc.target/powerpc/pr64205.c: Skip on AIX.
diff --git a/gcc/testsuite/g++.dg/ipa/pr65002.C b/gcc/testsuite/g++.dg/ipa/pr65002.C
new file mode 100644 (file)
index 0000000..ac7c66b
--- /dev/null
@@ -0,0 +1,26 @@
+/* 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);
+}
diff --git a/gcc/testsuite/gcc.dg/pr65002.C b/gcc/testsuite/gcc.dg/pr65002.C
deleted file mode 100644 (file)
index ac7c66b..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-/* 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);
-}