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>
* 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/other/warning1.C: Likewise.
* g++.old-deja/g++.bugs/900119_01.C: Likewise.
......
......@@ -4,20 +4,18 @@
#include <algorithm>
namespace std {
extern "C" void puts(const char *s);
}
void foo(const char *s);
void
inline_me (char *x)
{
std::puts(x);
foo(x);
}
static void
inline_me_too (char *x)
{
std::puts(x);
foo(x);
}
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