Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Douglas Gregor | 4310f4e | 2009-02-16 22:38:20 +0000 | [diff] [blame] | 2 | |
3 | x; // expected-error{{C++ requires a type specifier for all declarations}} | ||||
4 | |||||
5 | f(int y) { return y; } // expected-error{{C++ requires a type specifier for all declarations}} |