Commit ed66ba99 by Marek Polacek Committed by Marek Polacek

* g++.dg/cpp1z/init-statement6.C: Rename a function.

From-SVN: r242467
parent bb00603d
2016-11-15 Marek Polacek <polacek@redhat.com>
* g++.dg/cpp1z/init-statement6.C: Rename a function.
2016-11-15 Thomas Koenig <tkoenig@gcc.gnu.org> 2016-11-15 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libgfortran/51119 PR libgfortran/51119
......
...@@ -7,14 +7,14 @@ ...@@ -7,14 +7,14 @@
std::map<int, std::string> m; std::map<int, std::string> m;
extern int xread (int *); extern int xread (int *);
extern void publish (int), raise (int); extern void publish (int), xraise (int);
void void
foo () foo ()
{ {
if (auto it = m.find (10); it != m.end ()) { std::string s = it->second; } if (auto it = m.find (10); it != m.end ()) { std::string s = it->second; }
if (char buf[10]; std::fgets(buf, 10, stdin)) { m[0] += buf; } if (char buf[10]; std::fgets(buf, 10, stdin)) { m[0] += buf; }
if (int s; int count = xread (&s)) { publish(count); raise(s); } if (int s; int count = xread (&s)) { publish(count); xraise(s); }
const char *s; const char *s;
if (auto keywords = {"if", "for", "while"}; if (auto keywords = {"if", "for", "while"};
......
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