gcc/testsuite/objc.dg/strings/const-str-12.m
raw| 1 | /* { dg-options "-Wall -funit-at-a-time" } */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* PR objc/27438, make sure that the decl produced by the front-end |
| 4 | does not cause a warning to be produced. */ |
| 5 | /* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */ |
| 6 | |
| 7 | @interface NXConstantString |
| 8 | { |
| 9 | void *isa; |
| 10 | const char * const nxcsptr; |
| 11 | const unsigned int nxcslen; |
| 12 | } |
| 13 | @end |
| 14 | NXConstantString *a = @"NSInconsistentArchiveException"; /* { dg-bogus "defined but not used" } */ |
| 15 | |
| 16 |