Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr42890.C
blob937367665dce29cb08074b40e8ebf927dd2fe57d
1 // PR tree-optimization/42890
2 // { dg-do compile }
4 extern "C" int puts (const char *) throw ();
6 struct S
8   const char *a;
9   const char **b;
10   S (const char *s) { a = s; b = &a; }
11   ~S () { puts (a); }
14 void
15 foo (int (*fn) (const char *))
17   S a ("foo");
18   fn ("bar");
21 int
22 main ()
24   foo (puts);