Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/unused-5.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
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" } */ |