[flang][nfc] Move external-hello-world to flang/examples

As `external-hello-world` is not really a test, I am moving it from
`flang/unittest/Runtime` to `flang/examples` (it makes a lot of sense as
an example). I've not modified the source code (apart from adjusting the
include paths).

Differential Revision: https://reviews.llvm.org/D104320
This commit is contained in:
Andrzej Warzynski 2021-06-16 08:00:50 +00:00
parent a6be6e31f1
commit 062644bb39
4 changed files with 12 additions and 12 deletions

View File

@ -401,6 +401,7 @@ if (FLANG_BUILD_TOOLS)
add_subdirectory(tools)
endif()
add_subdirectory(runtime)
add_subdirectory(examples)
if (FLANG_INCLUDE_TESTS)
add_subdirectory(test)

View File

@ -0,0 +1,8 @@
# This test is not run by default as it requires input.
add_executable(external-hello-world
external-hello.cpp
)
target_link_libraries(external-hello-world
FortranRuntime
)

View File

@ -1,6 +1,6 @@
#include "../../runtime/io-api.h"
#include "../../runtime/main.h"
#include "../../runtime/stop.h"
#include "../runtime/io-api.h"
#include "../runtime/main.h"
#include "../runtime/stop.h"
#include <cstring>
#include <limits>

View File

@ -18,15 +18,6 @@ target_link_libraries(RuntimeTesting
${llvm_libs}
)
# This test is not run by default as it requires input.
add_executable(external-hello-world
external-hello.cpp
)
target_link_libraries(external-hello-world
FortranRuntime
)
add_flang_nongtest_unittest(external-io
RuntimeTesting
FortranRuntime