Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -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}} |