================
@@ -0,0 +1,15 @@
+! Test that -fruntime-trampoline is properly forwarded from driver to
+! frontend, and that -fno-runtime-trampoline (default) works.
+
+! REQUIRES: x86-registered-target
+
+! RUN: %flang -### -fruntime-trampoline %s -o %t 2>&1 | FileCheck %s 
--check-prefix=CHECK-ON
+! RUN: %flang -### -fno-runtime-trampoline %s -o %t 2>&1 | FileCheck %s 
--check-prefix=CHECK-OFF
+! RUN: %flang -### %s -o %t 2>&1 | FileCheck %s --check-prefix=CHECK-DEFAULT
----------------
tarunprabhu wrote:

The `DEFAULT` prefix here is identical to `OFF`. Setting `--check-prefix=OFF` 
here would remove the need for an additional label. It is also a bit clearer 
that the default behavior is equivalent to `-fno-runtime-trampoline`

https://github.com/llvm/llvm-project/pull/183108
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to