]> git.proxmox.com Git - rustc.git/blob - src/llvm/tools/clang/test/SemaCXX/decltype-crash.cpp
Imported Upstream version 0.6
[rustc.git] / src / llvm / tools / clang / test / SemaCXX / decltype-crash.cpp
1 // RUN: %clang_cc1 -fsyntax-only -verify -Wc++11-compat %s
2
3 int& a();
4
5 void f() {
6 decltype(a()) c; // expected-warning {{'decltype' is a keyword in C++11}} expected-error {{use of undeclared identifier 'decltype'}}
7 }