Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/objc.dg/naming-1.m @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
/* Test for obscuring of @interfaces with local vars. */ /* Author: Ziemowit Laski <zlaski@apple.com>. */ /* { dg-do compile } */ @interface View @end void foo(void) { int View; /* ok */ View = 1; /* ok */ View *view; /* { dg-error "undeclared|only once|it appears" } */ } void bar(void) { View *view; /* ok */ View = 1; /* { dg-error "parse error|syntax error|expected" } */ }