Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr38705.C
blob8058d3a3979166d35c2f79cb5a247dc8707c7871
1 // PR c++/38705
2 // { dg-do compile }
4 typedef int T;
5 typedef __SIZE_TYPE__ size_t;
6 extern "C" void *memcpy (void *, const void *, size_t);
8 void
9 foo (char *p, const int q)
11   memcpy (p, &q, sizeof (int));
14 struct S
16   T t;
17   int u;
18   int bar () const;
19   template <class T> void foo (const T &x) const {}
22 int
23 S::bar () const
25   foo (u);
26   foo (t);