Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/unused-5.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-Wunused" } */ | |
3 /* { dg-final { scan-assembler "string_to_look_for" } } */ | |
4 /* nvptx outputs strings as array of ints. */ | |
5 /* { dg-skip-if "" { nvptx-*-* } } */ | |
6 | |
7 /* 'volatile' variables get output and don't produce a warning about being | |
8 unused. */ | |
9 static volatile char string[] | |
10 = "string_to_look_for"; /* { dg-bogus "not used" } */ |