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

This commit is contained in:
Douglas Yung 2022-09-20 11:23:47 -07:00
parent 16f735d2fb
commit f2949febf3
1 changed files with 6 additions and 0 deletions

View File

@ -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