Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gdc.dg / pr96301c.d
blobc90946250160a5d0e884b3f013c61b2ac7f562d1
1 // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96301
2 // { dg-additional-options "-fPIC" { target fpic } }
3 // { dg-do compile }
4 class Container
6 int[] children;
8 void remove(void* data)
10 int[] remove(int[] range)
12 auto result = range;
13 if (result.front)
14 return result;
15 assert(0);
17 if (data)
18 remove(children);
22 int front(int[] a)
24 return a.ptr[0];