gcc/
[official-gcc.git] / gcc / testsuite / gcc.dg / debug / 20050907-1.c
blob0112ff7d37aa8f6c7c1a76808b9d6b5d0bf7d41a
1 /* PR 23190 */
2 /* Well, collateral damage from a proposed patch fixing 23190. We'd emit
3 debug info for multilib_exclusions_raw without emitting the variable
4 itself, leading to link errors. This reduced form is filed as PR 23777,
5 for not eliminating things soon enough. */
6 /* { dg-do link } */
8 static const char *const multilib_exclusions_raw[] = { 0 };
10 void __attribute__((noinline)) f(char *const *p)
12 __asm__ ("" : : "g"(p) : "memory");
15 void g (char **o)
17 const char *const *q = multilib_exclusions_raw;
19 f (o);
20 while (*q++)
21 f (o);
24 int main() { return 0; }