From 554bcb69c2d785a011a30e7db87a36a87fe7db10 Mon Sep 17 00:00:00 2001 From: dim Date: Wed, 15 Aug 2012 20:02:54 +0000 Subject: Vendor import of clang trunk r161861: http://llvm.org/svn/llvm-project/cfe/trunk@161861 --- test/Misc/diag-trailing-null-bytes.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/Misc/diag-trailing-null-bytes.cpp (limited to 'test/Misc/diag-trailing-null-bytes.cpp') diff --git a/test/Misc/diag-trailing-null-bytes.cpp b/test/Misc/diag-trailing-null-bytes.cpp new file mode 100644 index 0000000..91b159c --- /dev/null +++ b/test/Misc/diag-trailing-null-bytes.cpp @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck -strict-whitespace %s +// CHECK: {{ERR_DNS_SERVER_REQUIRES_TCP$}} + +// http://llvm.org/PR12674 +#define NET_ERROR(label, value) ERR_ ## label = value, + +NET_ERROR(DNS_SERVER_REQUIRES_TCP, -801) + +#undef NET_ERROR + -- cgit v1.1