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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [keywords-3.m] - Blame information for rev 801

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

Line No. Rev Author Line
1 704 jeremybenn
/* Test that 'class', 'public', 'private', protected', 'try', 'catch',
2
   'throw' are not keywords in pure Objective-C if not after a '@'.
3
*/
4
/* { dg-do compile } */
5
 
6
int class (int public)
7
{
8
  int private = public;
9
  int protected = private * 2;
10
  int try = protected * 2;
11
  int catch = try * 2;
12
  int throw = catch * 2;
13
 
14
  return throw;
15
}
16
 
17
int main (void)
18
{
19
  return class (0);
20
}

powered by: WebSVN 2.1.0

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