Skip to content

Commit

Permalink
[sanitizer][test] -std=c2x instead of -std=c23
Browse files Browse the repository at this point in the history
Adjust tests from dd230ef to use
-std=c2x instead, as Clang in release/17.x doesn't support -std=c23.
  • Loading branch information
MaskRay authored and tru committed Sep 1, 2023
1 parent 051aa17 commit a612cb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler-rt/test/sanitizer_common/TestCases/scanf.c
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/test/sanitizer_common/TestCases/strtol.c
Original file line number Diff line number Diff line change
@@ -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>
Expand Down

0 comments on commit a612cb0

Please sign in to comment.