// RUN: %clang_cc1 -fsyntax-only -std=c++17 -verify %s
auto
int test = 11; // expected-note 2 {{'test' declared here}}
auto
;
;
auto L1 = ; // expected-error {{use of undeclared identifier 's'}}
using T1 = decltype;
// FIXME: Suppress the 'undeclared identifier T1' diagnostic, the UsingDecl T1 is discarded because of an invalid L1().
static_assert; // expected-error {{use of undeclared identifier 'T1'}}
auto L2 = ; // expected-error {{use of undeclared identifier 'tes'; did you mean 'test'?}}
using T2 = decltype;
static_assert;
;
FooRecord::NestedNamespace::type x; // expected-error {{no member named 'NestedNamespace' in 'FooRecord'; did you mean 'BarNamespace::NestedNamespace'?}}
void // expected-error {{undeclared identifier 'n'}}
void // expected-error {{undeclared identifier '_test_'}}