]> code.ossystems Code Review - openembedded-core.git/blob
b130a11eaf6ebeed5d25e2871f4949e7c3445dae
[openembedded-core.git] /
1 Upstream-Status: Inappropriate [Backport]
2 From 2173abe5d6f3f3157317caa470226e13827c3df9 Mon Sep 17 00:00:00 2001
3 From: redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
4 Date: Sun, 10 Apr 2011 16:34:34 +0000
5 Subject: [PATCH 099/200] 2011-04-10  Jonathan Wakely  <jwakely.gcc@gmail.com>
6
7         * testsuite/20_util/function/48451.cc: Rename to...
8         * testsuite/20_util/function/48541.cc: This.
9
10
11
12 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@172243 138bc75d-0d04-0410-961f-82ee72b054a4
13
14 deleted file mode 100644
15 index f812367..0000000
16 --- a/libstdc++-v3/testsuite/20_util/function/48451.cc
17 +++ /dev/null
18 @@ -1,40 +0,0 @@
19 -// { dg-options "-std=gnu++0x" }
20 -// { dg-do compile }
21 -// Copyright (C) 2011 Free Software Foundation, Inc.
22 -//
23 -// This file is part of the GNU ISO C++ Library.  This library is free
24 -// software; you can redistribute it and/or modify it under the
25 -// terms of the GNU General Public License as published by the
26 -// Free Software Foundation; either version 3, or (at your option)
27 -// any later version.
28 -//
29 -// This library is distributed in the hope that it will be useful,
30 -// but WITHOUT ANY WARRANTY; without even the implied warranty of
31 -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32 -// GNU General Public License for more details.
33 -//
34 -// You should have received a copy of the GNU General Public License along
35 -// with this library; see the file COPYING3.  If not see
36 -// <http://www.gnu.org/licenses/>.
37 -
38 -// libstdc++/48451
39 -
40 -#include <functional>
41 -
42 -struct X {
43 -  void operator () () const { }
44 -  float operator & () const { return 1.2345; }
45 -};
46 -
47 -void test01()
48 -{
49 -  X x;
50 -  std::function<void()> f(x);
51 -  f();
52 -}
53 -
54 -int main()
55 -{
56 -  test01();
57 -  return 0;
58 -}
59 diff --git a/libstdc++-v3/testsuite/20_util/function/48541.cc b/libstdc++-v3/testsuite/20_util/function/48541.cc
60 new file mode 100644
61 index 0000000..f812367
62 --- /dev/null
63 +++ b/libstdc++-v3/testsuite/20_util/function/48541.cc
64 @@ -0,0 +1,40 @@
65 +// { dg-options "-std=gnu++0x" }
66 +// { dg-do compile }
67 +// Copyright (C) 2011 Free Software Foundation, Inc.
68 +//
69 +// This file is part of the GNU ISO C++ Library.  This library is free
70 +// software; you can redistribute it and/or modify it under the
71 +// terms of the GNU General Public License as published by the
72 +// Free Software Foundation; either version 3, or (at your option)
73 +// any later version.
74 +//
75 +// This library is distributed in the hope that it will be useful,
76 +// but WITHOUT ANY WARRANTY; without even the implied warranty of
77 +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
78 +// GNU General Public License for more details.
79 +//
80 +// You should have received a copy of the GNU General Public License along
81 +// with this library; see the file COPYING3.  If not see
82 +// <http://www.gnu.org/licenses/>.
83 +
84 +// libstdc++/48451
85 +
86 +#include <functional>
87 +
88 +struct X {
89 +  void operator () () const { }
90 +  float operator & () const { return 1.2345; }
91 +};
92 +
93 +void test01()
94 +{
95 +  X x;
96 +  std::function<void()> f(x);
97 +  f();
98 +}
99 +
100 +int main()
101 +{
102 +  test01();
103 +  return 0;
104 +}
105 -- 
106 1.7.0.4
107