PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / obj-c++.dg / keywords-2.mm
blobc81cb4d0cac80e3bfb1f04df396568ce6d06ccdf
1 /* 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 } */
7 int encode (int end)
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;
18   return implementation;
21 int main (void)
23   return encode (0);