Sign in
cobalt
/
cobalt
/
3cd5432aaed8f14f27f66ade1b51aa71df939492
/
.
/
third_party
/
llvm-project
/
clang
/
test
/
SemaCXX
/
decltype-crash.cpp
blob: 1cebfcd72c86193ec662dd8feb67d4e34bf9a30b [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only -verify -Wc++11-compat -std=c++98 %s
int
&
a
();
void
f
()
{
decltype
(
a
())
c
;
// expected-warning {{'decltype' is a keyword in C++11}} expected-error {{use of undeclared identifier 'decltype'}}
}