gcc/testsuite/gcc.dg/debug/const-3.c
raw| 1 | /* Make sure we don't emit strings just because of debug information |
| 2 | for string initializers. */ |
| 3 | /* { dg-do compile } */ |
| 4 | /* { dg-options "-O2 -g" } */ |
| 5 | /* { dg-final { scan-assembler-not "dontgenerate" } } */ |
| 6 | static const char *p = "dontgenerate1"; |
| 7 | static const char *q[2] = { 0, "dontgenerate2" }; |