llvm-project/clang/test/Parser/compound_literal.c

9 lines
197 B
C

// RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: %clang_cc1 -fsyntax-only -verify -x c++ %s
// expected-no-diagnostics
int main() {
char *s;
s = (char []){"whatever"};
s = (char(*)){s};
}