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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [keywords-2.mm] - Rev 706

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

/* Test that 'encode', 'end', 'compatibility_alias', 'defs',
   'protocol', 'selector', finally', 'synchronized', 'interface',
   'implementation' are not keywords if not after a '@'.
*/
/* { dg-do compile } */

int encode (int end)
{
  int compatibility_alias = end * 2;
  int defs = compatibility_alias * 2;
  int protocol = defs * 2;
  int selector = protocol * 2;
  int finally = selector * 2;
  int synchronized = finally * 2;
  int interface = synchronized * 2;
  int implementation = interface * 2;

  return implementation;
}

int main (void)
{
  return encode (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.