[flang-commits] [flang] 3d9fc3f - [flang] add no-cpp-dep test for AIX 64 bit (#74637)
via flang-commits
flang-commits at lists.llvm.org
Thu Dec 21 05:58:59 PST 2023
Author: madanial0
Date: 2023-12-21T08:58:55-05:00
New Revision: 3d9fc3fed036442e88f43e9d70362d1fd9f239ab
URL: https://github.com/llvm/llvm-project/commit/3d9fc3fed036442e88f43e9d70362d1fd9f239ab
DIFF: https://github.com/llvm/llvm-project/commit/3d9fc3fed036442e88f43e9d70362d1fd9f239ab.diff
LOG: [flang] add no-cpp-dep test for AIX 64 bit (#74637)
Add a new test for no-cpp-dep on AIX as it requires 64 bit OBJECT_MODE
since only 64-bit AIX is supported. AIX does not allow `-o /dev/null`
and requires `-lpthread` flag to be added.
---------
Co-authored-by: Mark Danial <mark.danial at ibm.com>
Added:
Modified:
flang/test/Runtime/no-cpp-dep.c
Removed:
################################################################################
diff --git a/flang/test/Runtime/no-cpp-dep.c b/flang/test/Runtime/no-cpp-dep.c
index f8fe97b5bf78e2..654bebed345b15 100644
--- a/flang/test/Runtime/no-cpp-dep.c
+++ b/flang/test/Runtime/no-cpp-dep.c
@@ -5,7 +5,10 @@ a C compiler.
REQUIRES: c-compiler
-RUN: %cc -std=c99 %s -I%include %libruntime %libdecimal -lm -o /dev/null
+RUN: %if system-aix %{ export OBJECT_MODE=64 %}
+RUN: %cc -std=c99 %s -I%include %libruntime %libdecimal -lm \
+RUN: %if system-aix %{-lpthread %}
+RUN: rm a.out
*/
#include "flang/Runtime/entry-names.h"
More information about the flang-commits
mailing list