llvm-for-llvmta/tools/clang/test/Driver/no-sibling-calls.c

9 lines
295 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang -### %s -fno-optimize-sibling-calls 2> %t
// RUN: FileCheck --check-prefix=CHECK-NOSC < %t %s
// CHECK-NOSC: "-mdisable-tail-calls"
// RUN: %clang -### -foptimize-sibling-calls %s 2> %t
// RUN: FileCheck --check-prefix=CHECK-OSC < %t %s
// CHECK-OSC-NOT: "-mdisable-tail-calls"