[clang] f2949fe - Add explicit tests for the PS4/PS5 C/C++ standards version defaults.

Douglas Yung via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 20 11:31:54 PDT 2022


Author: Douglas Yung
Date: 2022-09-20T11:31:38-07:00
New Revision: f2949febf354eb8aded7db3e63d2c878fe86db3b

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

LOG: Add explicit tests for the PS4/PS5 C/C++ standards version defaults.

Added: 
    clang/test/Preprocessor/lang-std-sie.cpp

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/clang/test/Preprocessor/lang-std-sie.cpp b/clang/test/Preprocessor/lang-std-sie.cpp
new file mode 100644
index 000000000000..e8e65690277a
--- /dev/null
+++ b/clang/test/Preprocessor/lang-std-sie.cpp
@@ -0,0 +1,6 @@
+/// Test that PS4/PS5 defaults to gnu++14.
+
+// RUN: %clang_cc1 -dM -E -triple x86_64-scei-ps4 %s | FileCheck --check-prefix=CXX14 %s
+// RUN: %clang_cc1 -dM -E -triple x86_64-sie-ps5 %s | FileCheck --check-prefix=CXX14 %s
+
+// CXX14: #define __cplusplus 201402L


        


More information about the cfe-commits mailing list