[llvm-branch-commits] [clang] 1f6d35b - Fix tests for c23 <-> c2x

Tobias Hieta via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Oct 27 05:51:09 PDT 2023


Author: Aaron Ballman
Date: 2023-10-27T14:47:29+02:00
New Revision: 1f6d35b36681b23668fea01a13657eb59419b5da

URL: https://github.com/llvm/llvm-project/commit/1f6d35b36681b23668fea01a13657eb59419b5da
DIFF: https://github.com/llvm/llvm-project/commit/1f6d35b36681b23668fea01a13657eb59419b5da.diff

LOG: Fix tests for c23 <-> c2x

Added: 
    

Modified: 
    clang/test/CodeGen/thread_local.c
    clang/test/Sema/thread_local.c

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGen/thread_local.c b/clang/test/CodeGen/thread_local.c
index b97f31c2fff2f6c..2f017c583fc476d 100644
--- a/clang/test/CodeGen/thread_local.c
+++ b/clang/test/CodeGen/thread_local.c
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -triple i686-pc-linux-gnu -std=c23 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple i686-pc-linux-gnu -std=c2x -emit-llvm -o - %s | FileCheck %s
 
 // Ensure that thread_local and _Thread_local emit the same codegen. See
 // https://github.com/llvm/llvm-project/issues/70068 for details.

diff  --git a/clang/test/Sema/thread_local.c b/clang/test/Sema/thread_local.c
index a0de0aa4e39a6e1..34e994fe9c54863 100644
--- a/clang/test/Sema/thread_local.c
+++ b/clang/test/Sema/thread_local.c
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -std=c23 %s -verify
+// RUN: %clang_cc1 -fsyntax-only -std=c2x %s -verify
 
 // Ensure that thread_local and _Thread_local are synonyms in C23 and both
 // restrict local variables to be explicitly static or extern.


        


More information about the llvm-branch-commits mailing list