1 // RUN: c-index-test -index-file %s -target armv7-windows-gnu -fdeclspec 2>&1 | FileCheck %s
2 
export_function(void)3 void __declspec(dllexport) export_function(void) {}
4 // CHECK: [indexDeclaration]: kind: function | name: export_function | {{.*}} | lang: C
5 // CHECK: <attribute>: attribute(dllexport)
export_gnu_attribute(void)6 void __attribute__((dllexport)) export_gnu_attribute(void) {}
7 // CHECK: [indexDeclaration]: kind: function | name: export_gnu_attribute | {{.*}} | lang: C
8 // CHECK: <attribute>: attribute(dllexport)
9 
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)
16 
17