17 lines · c
1// REQUIRES: x86-registered-target2// RUN: %clang_cc1 -triple x86_64-unknown-unknown -O3 -mframe-pointer=non-leaf -pg -S -o - %s | \3// RUN: FileCheck %s4// RUN: %clang_cc1 -triple x86_64-unknown-unknown -O3 -mframe-pointer=all -pg -S -o - %s | \5// RUN: FileCheck %s6// RUN: %clang_cc1 -triple x86_64-unknown-unknown -O3 -mframe-pointer=non-leaf -pg -S -o - %s | \7// RUN: FileCheck %s8 9// Test that the frame pointer is kept when compiling with10// profiling.11 12//CHECK: pushq %rbp13int main(void)14{15 return 0;16}17