PR target/84336
[official-gcc.git] / gcc / testsuite / objc.dg / keywords-3.m
blob28c2cf50e17c4c80cc0f931764dd4e5ceda54ca1
1 /* Test that 'class', 'public', 'private', protected', 'try', 'catch',
2    'throw' are not keywords in pure Objective-C if not after a '@'.
3 */
4 /* { dg-do compile } */
6 int class (int public)
8   int private = public;
9   int protected = private * 2;
10   int try = protected * 2;
11   int catch = try * 2;
12   int throw = catch * 2;
14   return throw;
17 int main (void)
19   return class (0);