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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [naming-1.m] - Blame information for rev 714

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 704 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.