[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / noplt.c
blob6436306f6ca61b4dddd2d1435fe6ee035367e9ce
1 // RUN: %clang_cc1 -emit-llvm -fno-plt %s -o - | FileCheck %s -check-prefix=CHECK-NOPLT -check-prefix=CHECK-NOPLT-METADATA
3 // CHECK-NOPLT: Function Attrs: nonlazybind
4 // CHECK-NOPLT-NEXT: declare {{.*}}i32 @foo
5 // CHECK-NOPLT-METADATA: !"RtLibUseGOT"
6 int foo(void);
8 int bar(void) {
9 return foo();