// RUN: %clang_cc1 -fsyntax-only -std=c++17 -Wc++98-compat-pedantic -verify %s
// RUN: %clang_cc1 -fsyntax-only -std=c++17 -Wc++98-compat-pedantic -Wno-bind-to-temporary-copy -Wno-unnamed-type-template-args -Wno-local-type-template-args -Wno-binary-literal -Werror %s
int
void
obj_of_unnamed_type; // expected-note {{here}}
int UnnamedTemplateArg = ; // expected-warning {{unnamed type as template argument is incompatible with C++98}}