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
This commit is contained in:
parent
6dd00ea9e3
commit
8e8d9a6b00
2 changed files with 6 additions and 5 deletions
|
@ -1,5 +1,8 @@
|
|||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue