Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/objc.dg/keywords-2.m @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* 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); }