summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/clang-abi-compat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Driver/clang-abi-compat.cpp')
-rw-r--r--clang/test/Driver/clang-abi-compat.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Driver/clang-abi-compat.cpp b/clang/test/Driver/clang-abi-compat.cpp
new file mode 100644
index 00000000000..9f1789867b2
--- /dev/null
+++ b/clang/test/Driver/clang-abi-compat.cpp
@@ -0,0 +1,6 @@
+// PS4 target requires clang ABI version 6, check that a warning is emitted when a version other than 6 is requested.
+// RUN: %clang -S --target=x86_64-scei-ps4 -fclang-abi-compat=4 %s 2>&1 | FileCheck %s -check-prefix=CHECK-WARNING
+// RUN: %clang -S --target=x86_64-scei-ps4 -fclang-abi-compat=latest %s 2>&1 | FileCheck %s -check-prefix=CHECK-WARNING
+
+// CHECK-WARNING: warning: target requires clang ABI version 6, ignoring requested version
+
OpenPOWER on IntegriCloud