Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Index / index-attrs.c
bloba1f1c37faeccdb3a85647a088aff1b246e563b1e
1 // RUN: c-index-test -index-file %s -target armv7-windows-gnu -fdeclspec 2>&1 | FileCheck %s
3 void __declspec(dllexport) export_function(void) {}
4 // CHECK: [indexDeclaration]: kind: function | name: export_function | {{.*}} | lang: C
5 // CHECK: <attribute>: attribute(dllexport)
6 void __attribute__((dllexport)) export_gnu_attribute(void) {}
7 // CHECK: [indexDeclaration]: kind: function | name: export_gnu_attribute | {{.*}} | lang: C
8 // CHECK: <attribute>: attribute(dllexport)
10 void __declspec(dllimport) import_function(void);
11 // CHECK: [indexDeclaration]: kind: function | name: import_function | {{.*}} | lang: C
12 // CHECK: <attribute>: attribute(dllimport)
13 void __attribute__((dllimport)) import_gnu_attribute(void);
14 // CHECK: [indexDeclaration]: kind: function | name: import_gnu_attribute | {{.*}} | lang: C
15 // CHECK: <attribute>: attribute(dllimport)