summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/missing-proto-2.m
blob: cb121b496e95846e539e46c323c20a203acaa13f (plain)
1
2
3
4
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." } */