Commit 8e8d9a6b by Jason Merrill Committed by Jason Merrill

inline-3.C: Use a normal function rather than misdeclare std::puts.

	* g++.dg/tree-ssa/inline-3.C: Use a normal function
	rather than misdeclare std::puts.

From-SVN: r170011
parent 6dd00ea9
2011-02-09 Jason Merrill <jason@redhat.com> 2011-02-09 Jason Merrill <jason@redhat.com>
* g++.dg/tree-ssa/inline-3.C: Use a normal function
rather than misdeclare std::puts.
* g++.dg/ext/vla1.C: Adjust for C++0x mode. * g++.dg/ext/vla1.C: Adjust for C++0x mode.
* g++.dg/other/warning1.C: Likewise. * g++.dg/other/warning1.C: Likewise.
* g++.old-deja/g++.bugs/900119_01.C: Likewise. * g++.old-deja/g++.bugs/900119_01.C: Likewise.
......
...@@ -4,20 +4,18 @@ ...@@ -4,20 +4,18 @@
#include <algorithm> #include <algorithm>
namespace std { void foo(const char *s);
extern "C" void puts(const char *s);
}
void void
inline_me (char *x) inline_me (char *x)
{ {
std::puts(x); foo(x);
} }
static void static void
inline_me_too (char *x) inline_me_too (char *x)
{ {
std::puts(x); foo(x);
} }
int main(int argc, char **argv) int main(int argc, char **argv)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment