David Blaikie f9ad1d1c77 Revert "Compress formatting of array type names (int [4] -> int[4])"
Looks like lldb has some issues with this - somehow it causes lldb to
treat a "char[N]" type as an array of chars (prints them out
individually) but a "char [N]" is printed as a string. (even though the
DWARF doesn't have this string in it - it's something to do with the
string lldb generates for itself using clang)

This reverts commit 277623f4d5a672d707390e2c3eaf30a9eb4b075c.
2021-10-14 14:49:25 -07:00

7 lines
201 B
C++

// RUN: %clang_cc1 %s -verify -fsyntax-only
void f1(int n) {
typedef int x[n];
const x y; // expected-error {{default initialization of an object of const type 'const x' (aka 'const int [n]')}}
}