llvm-for-llvmta/tools/clang/test/CXX/dcl.decl/dcl.init/dcl.init.string/p2.cpp

3 lines
131 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
char test1[1]="f"; // expected-error {{initializer-string for char array is too long}}