[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / AST / issue53742.cpp
blob93978f2bcc11d46cd1d293acdf19675a6846da54
1 // RUN: %clang_cc1 -fsyntax-only %s -verify
3 struct Data {
4 char *a;
5 char *b;
6 bool *c;
7 };
9 int main() {
10 Data in;
11 in.a = new char[](); // expected-error {{cannot determine allocated array size from initializer}}
12 in.c = new bool[100]();
13 in.b = new char[100]();