Author: Fangrui Song Date: 2023-09-01T08:32:36+02:00 New Revision: a612cb0b81d8b2573c30e5ae89a8e899999b045b
URL: https://github.com/llvm/llvm-project/commit/a612cb0b81d8b2573c30e5ae89a8e899999b045b DIFF: https://github.com/llvm/llvm-project/commit/a612cb0b81d8b2573c30e5ae89a8e899999b045b.diff LOG: [sanitizer][test] -std=c2x instead of -std=c23 Adjust tests from dd230efe703f34678ce52280e50238abf908aaa1 to use -std=c2x instead, as Clang in release/17.x doesn't support -std=c23. Added: Modified: compiler-rt/test/sanitizer_common/TestCases/scanf.c compiler-rt/test/sanitizer_common/TestCases/strtol.c Removed: ################################################################################ diff --git a/compiler-rt/test/sanitizer_common/TestCases/scanf.c b/compiler-rt/test/sanitizer_common/TestCases/scanf.c index a7f35c2af57eea..a42d9f72a71d92 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/scanf.c +++ b/compiler-rt/test/sanitizer_common/TestCases/scanf.c @@ -1,6 +1,6 @@ // RUN: %clang -std=c17 %s -o %t && %run %t /// Test __isoc23_* for glibc 2.38+. -// RUN: %clang -std=c23 %s -o %t && %run %t +// RUN: %clang -std=c2x %s -o %t && %run %t #include <assert.h> #include <stdarg.h> diff --git a/compiler-rt/test/sanitizer_common/TestCases/strtol.c b/compiler-rt/test/sanitizer_common/TestCases/strtol.c index 9947cdeacd8c31..c3de9bcb7aa040 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/strtol.c +++ b/compiler-rt/test/sanitizer_common/TestCases/strtol.c @@ -1,6 +1,6 @@ // RUN: %clang -std=c17 %s -o %t && %run %t /// Test __isoc23_* for glibc 2.38+. -// RUN: %clang -std=c23 %s -o %t && %run %t +// RUN: %clang -std=c2x %s -o %t && %run %t #include <assert.h> #include <inttypes.h> _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits