summaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/vla.cpp
blob: d63b6335f453350b98af20d7dd71d733823f4c89 (about) (plain)
1
2
3
4
5
// RUN: %clang_cc1 -verify %s

// PR11925
int n;
int (&f())[n]; // expected-error {{function declaration cannot have variably modified type}}