diff --git a/lld/test/ELF/Inputs/helloworld.c b/lld/test/ELF/Inputs/helloworld.c new file mode 100644 --- /dev/null +++ b/lld/test/ELF/Inputs/helloworld.c @@ -0,0 +1,6 @@ +#include + +int main() { + printf("hello world!\n"); + return 0; +} diff --git a/lld/test/ELF/helloworld.test b/lld/test/ELF/helloworld.test new file mode 100644 --- /dev/null +++ b/lld/test/ELF/helloworld.test @@ -0,0 +1,4 @@ +# RUN: clang -fuse-ld=lld %S/Inputs/helloworld.c -o %t +# RUN: %t | FileCheck %s + +#CHECK: hello world!