diff options
Diffstat (limited to 'gcc/testsuite/objc.dg/strings/const-str-12.m')
-rw-r--r-- | gcc/testsuite/objc.dg/strings/const-str-12.m | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/objc.dg/strings/const-str-12.m b/gcc/testsuite/objc.dg/strings/const-str-12.m new file mode 100644 index 00000000000..93059018647 --- /dev/null +++ b/gcc/testsuite/objc.dg/strings/const-str-12.m @@ -0,0 +1,16 @@ +/* { dg-options "-Wall -funit-at-a-time" } */ +/* { dg-do compile } */ +/* PR objc/27438, make sure that the decl produced by the front-end + does not cause a warning to be produced. */ +/* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */ + +@interface NXConstantString +{ + void *isa; + const char * const nxcsptr; + const unsigned int nxcslen; +} +@end +NXConstantString *a = @"NSInconsistentArchiveException"; /* { dg-bogus "defined but not used" } */ + + |