llvm-project/clang/test/SemaCXX/implicit-int.cpp

6 lines
214 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
x; // expected-error{{a type specifier is required for all declarations}}
f(int y) { return y; } // expected-error{{a type specifier is required for all declarations}}