1*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -verify %s 2*67e74705SXin Li 3*67e74705SXin Li x; // expected-error{{C++ requires a type specifier for all declarations}} 4*67e74705SXin Li f(int y)5*67e74705SXin Lif(int y) { return y; } // expected-error{{C++ requires a type specifier for all declarations}} 6