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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [keywords-1.m] - Rev 704

Compare with Previous | Blame | View Log

/* Test that 'in', 'out', 'inout', 'bycopy', 'byref', 'oneway'
   are not keywords outside of a "protocol qualifier" context.
*/
/* { dg-do compile } */
 
typedef int in;
 
in out (in inout)
{
  int byref = inout * 2;
 
  return byref + inout;
}
 
@class byref;
 
@interface inout
@end
 
@protocol oneway;
 
int main (void)
{
  in bycopy = (in)(out (0));
 
  return (in)bycopy;
}
 

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.