Welcome to mirror list, hosted at ThFree Co, Russian Federation.

implicit-int.cpp « SemaCXX « test « clang - github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9711adf34304e3622ca4226f0f65a51fafedbcdf (plain)
1
2
3
4
5
// RUN: %clang_cc1 -fsyntax-only -verify %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}}