blob: 9711adf34304e3622ca4226f0f65a51fafedbcdf [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Douglas Gregor4310f4e2009-02-16 22:38:20 +00002
3x; // expected-error{{C++ requires a type specifier for all declarations}}
4
5f(int y) { return y; } // expected-error{{C++ requires a type specifier for all declarations}}