OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc.dg/] [naming-1.m] - Blame information for rev 309

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 309 jeremybenn
/* Test for obscuring of @interfaces with local vars.  */
2
/* Author: Ziemowit Laski <zlaski@apple.com>.  */
3
/* { dg-do compile } */
4
 
5
@interface View
6
@end
7
 
8
void foo(void)
9
{
10
        int View;       /* ok */
11
        View = 1;       /* ok */
12
        View *view;     /* { dg-error "undeclared|only once|it appears" } */
13
}
14
 
15
void bar(void)
16
{
17
        View *view;     /* ok */
18
        View = 1;       /* { dg-error "parse error|syntax error|expected" } */
19
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.