T->isObjCQualifiedIdType() || T->isObjCQualifiedClassType();
break;
+ case Type::VariableArray:
case Type::DependentSizedArray:
NeedARCStrongQualifier = true;
LLVM_FALLTHROUGH;
return canPrefixQualifiers(
cast<ArrayType>(UnderlyingType)->getElementType().getTypePtr(),
NeedARCStrongQualifier);
- case Type::VariableArray:
- NeedARCStrongQualifier = true;
- LLVM_FALLTHROUGH;
case Type::Adjusted:
case Type::Decayed:
--- /dev/null
+// 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]')}}
+}