Home | History | Annotate | Download | only in Parser
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 // RUN: %clang_cc1 -fsyntax-only -verify -x c++ %s
      3 // expected-no-diagnostics
      4 int main() {
      5   char *s;
      6   s = (char []){"whatever"};
      7   s = (char(*)){s};
      8 }
      9