summaryrefslogtreecommitdiff
path: root/clang/test/CXX/dcl.decl/dcl.init/dcl.init.string/p2.cpp
blob: 3d67fccb42821d0a4aaffdd8545e1050d634bb88 (about) (plain)
1
2
// RUN: %clang_cc1 -fsyntax-only -verify %s
char test1[1]="f"; // expected-error {{initializer-string for char array is too long}}