Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
a41c97a5d1912ffd184381d269fd8e5a25ee5e59
/
.
/
test
/
SemaCXX
/
decltype-crash.cpp
blob: 002bd4cfe737f110397fadd0d58abee4a1d9dee1 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only -verify -Wc++11-compat %s
int
&
a
();
void
f
()
{
decltype
(
a
())
c
;
// expected-warning {{'decltype' is a keyword in C++11}} expected-error {{use of undeclared identifier 'decltype'}}
}