diff options
Diffstat (limited to 'clang/test/CXX/dcl.decl/dcl.init/dcl.init.string/p2.cpp')
-rw-r--r-- | clang/test/CXX/dcl.decl/dcl.init/dcl.init.string/p2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/CXX/dcl.decl/dcl.init/dcl.init.string/p2.cpp b/clang/test/CXX/dcl.decl/dcl.init/dcl.init.string/p2.cpp new file mode 100644 index 0000000..3d67fcc --- /dev/null +++ b/clang/test/CXX/dcl.decl/dcl.init/dcl.init.string/p2.cpp @@ -0,0 +1,2 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s +char test1[1]="f"; // expected-error {{initializer-string for char array is too long}} |