Add explicit tests for the PS4/PS5 C/C++ standards version defaults.
authorDouglas Yung <douglas.yung@sony.com>
Tue, 20 Sep 2022 18:23:47 +0000 (11:23 -0700)
committerDouglas Yung <douglas.yung@sony.com>
Tue, 20 Sep 2022 18:31:38 +0000 (11:31 -0700)
clang/test/Preprocessor/lang-std-sie.cpp [new file with mode: 0644]

diff --git a/clang/test/Preprocessor/lang-std-sie.cpp b/clang/test/Preprocessor/lang-std-sie.cpp
new file mode 100644 (file)
index 0000000..e8e6569
--- /dev/null
@@ -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