freebsd-nq/test/SemaCXX/decltype-crash.cpp
2010-01-01 10:34:51 +00:00

8 lines
150 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
int& a();
void f() {
decltype(a()) c; // expected-error {{use of undeclared identifier 'decltype'}}
}