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] - Rev 801

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

/* Test that 'class', 'public', 'private', protected', 'try', 'catch',
   'throw' are not keywords in pure Objective-C if not after a '@'.
*/
/* { dg-do compile } */
 
int class (int public)
{
  int private = public;
  int protected = private * 2;
  int try = protected * 2;
  int catch = try * 2;
  int throw = catch * 2;
 
  return throw;
}
 
int main (void)
{
  return class (0);
}
 

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

powered by: WebSVN 2.1.0

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