Author: gbiv Date: Mon Aug 5 16:19:15 2019 New Revision: 367947 URL: http://llvm.org/viewvc/llvm-project?rev=367947&view=rev Log: [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... Modified: cfe/trunk/test/Sema/warn-nullchar-nullptr.c Modified: cfe/trunk/test/Sema/warn-nullchar-nullptr.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/warn-nullchar-nullptr.c?rev=367947&r1=367946&r2=367947&view=diff ============================================================================== --- cfe/trunk/test/Sema/warn-nullchar-nullptr.c (original) +++ cfe/trunk/test/Sema/warn-nullchar-nullptr.c Mon Aug 5 16:19:15 2019 @@ -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?}} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits