2014-07-11 Edward Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / obj-c++.dg / keywords-1.mm
blobabb4537ae646c40e316ca66305e52a177adb52d1
1 /* Test that 'in', 'out', 'inout', 'bycopy', 'byref', 'oneway'
2    are not keywords outside of a "protocol qualifier" context.
3 */
4 /* { dg-do compile } */
6 typedef int in;
8 in out (in inout)
10   int byref = inout * 2;
11   
12   return byref + inout;
15 @class byref;
17 @interface inout
18 @end
20 @protocol oneway;
22 int main (void)
24   in bycopy = (in)(out (0));
26   return (in)bycopy;