From: George Burgess IV Date: Mon, 5 Aug 2019 23:19:15 +0000 (+0000) Subject: [Sema] attempt to appease buildbots after r367940 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf6324a4dbef025117e50e9ad76bbc5f88b05de9;p=clang [Sema] attempt to appease buildbots after r367940 A buildbot got angry about this new test, with error messages like: warn-nullchar-nullptr.c Line 16: use of undeclared identifier 'u' It looks like this `u'c'` syntax was introduced in C11; I'm guessing some bots may default to something before that. Let's see if explicitly specifying the standard version makes it happy... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367947 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/warn-nullchar-nullptr.c b/test/Sema/warn-nullchar-nullptr.c index 36a126a043..eabfebc266 100644 --- a/test/Sema/warn-nullchar-nullptr.c +++ b/test/Sema/warn-nullchar-nullptr.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify -Wall %s +// RUN: %clang_cc1 -fsyntax-only -verify -Wall %s -std=c11 int test1(int *a) { return a == '\0'; // expected-warning {{comparing a pointer to a null character constant; did you mean to compare to (void *)0?}}