Skip to content

Commit a612cb0

Browse files
MaskRaytru
authored andcommitted
[sanitizer][test] -std=c2x instead of -std=c23
Adjust tests from dd230ef to use -std=c2x instead, as Clang in release/17.x doesn't support -std=c23.
1 parent 051aa17 commit a612cb0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler-rt/test/sanitizer_common/TestCases/scanf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %clang -std=c17 %s -o %t && %run %t
22
/// Test __isoc23_* for glibc 2.38+.
3-
// RUN: %clang -std=c23 %s -o %t && %run %t
3+
// RUN: %clang -std=c2x %s -o %t && %run %t
44

55
#include <assert.h>
66
#include <stdarg.h>

compiler-rt/test/sanitizer_common/TestCases/strtol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %clang -std=c17 %s -o %t && %run %t
22
/// Test __isoc23_* for glibc 2.38+.
3-
// RUN: %clang -std=c23 %s -o %t && %run %t
3+
// RUN: %clang -std=c2x %s -o %t && %run %t
44

55
#include <assert.h>
66
#include <inttypes.h>

0 commit comments

Comments
 (0)