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