// RUN: %clang_cc1 -std=c++17 -verify=expected,cxx17 %s
// RUN: %clang_cc1 -std=c++20 -verify=expected,cxx20 %s
; // expected-note 1+{{here}}
A a = 0;
A ;
A c = ;
A d = A;
auto *p = new ;
A *q = new ; // expected-error {{cannot form pointer to deduced class template specialization type}}
;
void ; // expected-error {{argument deduction not allowed in function prototype}}
A ; // expected-error {{argument deduction not allowed in function return type}}
// cxx17-error {{argument deduction not allowed in template parameter}}
void ;