diff options
Diffstat (limited to 'test/CodeGen/noplt.c')
-rw-r--r-- | test/CodeGen/noplt.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/noplt.c b/test/CodeGen/noplt.c new file mode 100644 index 000000000000..f467199efab2 --- /dev/null +++ b/test/CodeGen/noplt.c @@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -emit-llvm -fno-plt %s -o - | FileCheck %s -check-prefix=CHECK-NOPLT + +// CHECK-NOPLT: Function Attrs: nonlazybind +// CHECK-NOPLT-NEXT: declare {{.*}}i32 @foo +int foo(); + +int bar() { + return foo(); +} |