[clang] edd7c13 - Silence C++17 extension diagnostics in test; NFC

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 5 08:32:59 PDT 2023


Author: Aaron Ballman
Date: 2023-06-05T11:32:50-04:00
New Revision: edd7c13dc3991c63e8b2347bcdc60014d366e16f

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

LOG: Silence C++17 extension diagnostics in test; NFC

Amends 12728e144994efe84715f4e5dbb8c3104e9f0b5a
Found by:
https://lab.llvm.org/buildbot/#/builders/139/builds/42135

Added: 
    

Modified: 
    clang/test/Sema/generic-selection-type-extension.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Sema/generic-selection-type-extension.c b/clang/test/Sema/generic-selection-type-extension.c
index 592cf4378559c..89ac3235807da 100644
--- a/clang/test/Sema/generic-selection-type-extension.c
+++ b/clang/test/Sema/generic-selection-type-extension.c
@@ -1,5 +1,5 @@
 // RUN: %clang_cc1 -std=c2x -fsyntax-only -verify -Wno-unused %s
-// RUN: %clang_cc1 -fsyntax-only -verify -Wno-unused -x c++ %s
+// RUN: %clang_cc1 -fsyntax-only -verify -Wno-unused -x c++ -std=c++17 %s
 
 // Test that the semantic behavior of the extension allowing the user to pass a
 // type as the first argument to _Generic.


        


More information about the cfe-commits mailing list