summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/20050907-1.c
blob: 0112ff7d37aa8f6c7c1a76808b9d6b5d0bf7d41a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* PR 23190 */
/* Well, collateral damage from a proposed patch fixing 23190.  We'd emit
   debug info for multilib_exclusions_raw without emitting the variable
   itself, leading to link errors.  This reduced form is filed as PR 23777,
   for not eliminating things soon enough.  */
/* { dg-do link } */

static const char *const multilib_exclusions_raw[] = { 0 };

void __attribute__((noinline)) f(char *const *p)
{
  __asm__ ("" : : "g"(p) : "memory");
}

void g (char **o)
{
  const char *const *q = multilib_exclusions_raw;

  f (o);
  while (*q++)
    f (o);
}

int main() { return 0; }