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