[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Driver / finline.c
blob8eacd5e923ef0cc065e22455297d4f1f6de8a9ef
1 /// -fno-inline overrides -finline-functions/-finline-hint-functions.
2 // RUN: %clang -### -c --target=x86_64-apple-darwin10 -O2 -fno-inline -fno-inline-functions %s 2>&1 | FileCheck %s --check-prefix=NOINLINE
3 // RUN: %clang -### -c --target=x86_64 -O2 -finline -fno-inline -finline-functions %s 2>&1 | FileCheck %s --check-prefix=NOINLINE
4 // NOINLINE-NOT: "-finline-functions"
5 // NOINLINE: "-fno-inline"
6 // NOINLINE-NOT: "-finline-functions"
8 /// -finline overrides -finline-functions.
9 // RUN: %clang -### -c --target=x86_64 -O2 -fno-inline -finline -finline-functions %s 2>&1 | FileCheck %s --check-prefix=INLINE
10 // INLINE-NOT: "-finline-functions"
11 // INLINE-NOT: "-fno-inline"
12 // INLINE-NOT: "-finline"
14 // RUN: %clang -### -c --target=aarch64 -O2 -finline-functions %s 2>&1 | FileCheck %s --check-prefix=INLINE-FUNCTIONS
15 // INLINE-FUNCTIONS: "-finline-functions"