summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/decltype-crash.cpp
blob: b56a7f602987f4c5875c760c82f67d506fdabda7 (plain)
1
2
3
4
5
6
7
// RUN: clang-cc -fsyntax-only -verify %s

int& a();

void f() {
  decltype(a()) c; // expected-error {{no matching function for call to 'decltype'}}
}