diff options
Diffstat (limited to 'gcc/testsuite/objc.dg/missing-proto-2.m')
-rw-r--r-- | gcc/testsuite/objc.dg/missing-proto-2.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/objc.dg/missing-proto-2.m b/gcc/testsuite/objc.dg/missing-proto-2.m new file mode 100644 index 000000000..cb121b496 --- /dev/null +++ b/gcc/testsuite/objc.dg/missing-proto-2.m @@ -0,0 +1,5 @@ +/* Test for graceful handling of missing protocol declarations. */ +/* Author: Ziemowit Laski <zlaski@apple.com>. */ +/* { dg-do compile } */ + +void *protRef = @protocol(Missing); /* { dg-error "cannot find protocol declaration for .Missing." } */ |