| 1 |
/* PR debug/5770 |
| 2 |
This testcase failed at -O -g because the following constants |
| 3 |
were optimized away since they were never referenced, but |
| 4 |
since they are variables with initializers, rtl_for_decl_location |
| 5 |
run expand_expr on their initializers and returned it. |
| 6 |
This lead to references to constants which were deferred and thus |
| 7 |
never emitted. */ |
| 8 |
/* { dg-do link } */ |
| 9 |
|
| 10 |
static const char foo[] = "foo string"; |
| 11 |
static const char bar[30] = "bar string"; |
| 12 |
static const wchar_t baz[] = L"baz string"; |
| 13 |
|
| 14 |
int |
| 15 |
main () |
| 16 |
{ |
| 17 |
} |