[PATCH] D122004: [lld] Add generic helloworld test program

Xiaodong Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 18 06:55:35 PDT 2022


XiaodongLoong created this revision.
XiaodongLoong added reviewers: tejohnson, MaskRay, benshi001.
Herald added a subscriber: emaste.
Herald added a project: All.
XiaodongLoong requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The hello world test program is usually a milestone during a
certain feature development. So I add this test program.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122004

Files:
  lld/test/ELF/Inputs/helloworld.c
  lld/test/ELF/helloworld.test


Index: lld/test/ELF/helloworld.test
===================================================================
--- /dev/null
+++ 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!
Index: lld/test/ELF/Inputs/helloworld.c
===================================================================
--- /dev/null
+++ lld/test/ELF/Inputs/helloworld.c
@@ -0,0 +1,6 @@
+#include<stdio.h>
+
+int main() {
+  printf("hello world!\n");
+  return 0;
+}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122004.416483.patch
Type: text/x-patch
Size: 528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220318/6a929975/attachment.bin>


More information about the llvm-commits mailing list