John Thompson | b3eca29 | 2009-10-27 14:31:53 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify -fms-extensions=0 %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}} |