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

From-SVN: r242467
This commit is contained in:
Marek Polacek 2016-11-16 01:14:57 +00:00 committed by Marek Polacek
parent bb00603d5c
commit ed66ba9969
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
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>
PR libgfortran/51119

View File

@ -7,14 +7,14 @@
std::map<int, std::string> m;
extern int xread (int *);
extern void publish (int), raise (int);
extern void publish (int), xraise (int);
void
foo ()
{
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 (int s; int count = xread (&s)) { publish(count); raise(s); }
if (int s; int count = xread (&s)) { publish(count); xraise(s); }
const char *s;
if (auto keywords = {"if", "for", "while"};