summaryrefslogtreecommitdiff
path: root/test/Driver/frame-pointer-elim.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Driver/frame-pointer-elim.c')
-rw-r--r--test/Driver/frame-pointer-elim.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Driver/frame-pointer-elim.c b/test/Driver/frame-pointer-elim.c
index 286cd6e61f83..5355cbe3a364 100644
--- a/test/Driver/frame-pointer-elim.c
+++ b/test/Driver/frame-pointer-elim.c
@@ -26,5 +26,10 @@
// RUN: FileCheck --check-prefix=OMIT_LEAF %s
// OMIT_LEAF: "-momit-leaf-frame-pointer"
+// On the PS4, we default to omitting the frame pointer on leaf functions
+// (OMIT_LEAF check line is above)
+// RUN: %clang -### -target x86_64-scei-ps4 -S %s 2>&1 | \
+// RUN: FileCheck --check-prefix=OMIT_LEAF %s
+
void f0() {}
void f1() { f0(); }