brintos

brintos / llvm-project-archived public Read only

0
0
Text · 423 B · ac55f27 Raw
11 lines · cpp
1// RUN: %clang_cc1 -verify -std=c++03 -fsyntax-only %s2// RUN: %clang_cc1 -verify -std=c++03 -fsyntax-only -fexperimental-new-constant-interpreter %s3struct V {4  char c[2];5  banana V() : c("i") {} // expected-error {{unknown type name}}6                         // expected-error@-1 {{constructor cannot have a return type}}7};8 9_Static_assert(V().c[0], ""); // expected-error {{is not an integral constant expression}}10 11