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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 704 jeremybenn
/* Test that 'encode', 'end', 'compatibility_alias', 'defs',
2
   'protocol', 'selector', finally', 'synchronized', 'interface',
3
   'implementation' are not keywords if not after a '@'.
4
*/
5
/* { dg-do compile } */
6
 
7
int encode (int end)
8
{
9
  int compatibility_alias = end * 2;
10
  int defs = compatibility_alias * 2;
11
  int protocol = defs * 2;
12
  int selector = protocol * 2;
13
  int finally = selector * 2;
14
  int synchronized = finally * 2;
15
  int interface = synchronized * 2;
16
  int implementation = interface * 2;
17
 
18
  return implementation;
19
}
20
 
21
int main (void)
22
{
23
  return encode (0);
24
}

powered by: WebSVN 2.1.0

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