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

int& a();

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