llvm-project/clang/test/SemaCXX/vla.cpp

6 lines
142 B
C++
Raw Normal View History

// RUN: %clang_cc1 -verify %s
// PR11925
int n;
int (&f())[n]; // expected-error {{function declaration cannot have variably modified type}}