Eli Friedman | eca3ed7 | 2011-06-13 23:56:42 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Eli Friedman | 85a5319 | 2009-04-07 19:37:57 +0000 | [diff] [blame] | 2 | |
3 | // Check that we don't allow illegal uses of inline | ||||
4 | inline int a; // expected-error{{'inline' can only appear on functions}} | ||||
5 | typedef inline int b; // expected-error{{'inline' can only appear on functions}} | ||||
6 | int d(inline int a); // expected-error{{'inline' can only appear on functions}} |