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

Sorry, I didn't notice this earlier, but is the `-o %t` in these tests 
necessary? With such tests, it is best to limit the number of options that are 
passed so it is clear what is being tested.

Although this test doesn't do it, I would generally avoid writing to temporary 
files if possible 

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