aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/implicit-int.cpp
blob: 723030516deedd4305a980f53e3fa4b2883f0fce (plain) (blame)
1
2
3
4
5
// RUN: clang-cc -fsyntax-only -verify -fms-extensions=0 %s

x; // expected-error{{C++ requires a type specifier for all declarations}}

f(int y) { return y; } // expected-error{{C++ requires a type specifier for all declarations}}