blob: a1f1c37faeccdb3a85647a088aff1b246e563b1e [file] [log] [blame]
Serge Pavlovb43573b2017-05-24 14:57:17 +00001// RUN: c-index-test -index-file %s -target armv7-windows-gnu -fdeclspec 2>&1 | FileCheck %s
Saleem Abdulrasool8aa0b802015-12-10 18:45:18 +00002
3void __declspec(dllexport) export_function(void) {}
Serge Pavlovb43573b2017-05-24 14:57:17 +00004// CHECK: [indexDeclaration]: kind: function | name: export_function | {{.*}} | lang: C
Saleem Abdulrasool8aa0b802015-12-10 18:45:18 +00005// CHECK: <attribute>: attribute(dllexport)
6void __attribute__((dllexport)) export_gnu_attribute(void) {}
Serge Pavlovb43573b2017-05-24 14:57:17 +00007// CHECK: [indexDeclaration]: kind: function | name: export_gnu_attribute | {{.*}} | lang: C
Saleem Abdulrasool8aa0b802015-12-10 18:45:18 +00008// CHECK: <attribute>: attribute(dllexport)
9
10void __declspec(dllimport) import_function(void);
Serge Pavlovb43573b2017-05-24 14:57:17 +000011// CHECK: [indexDeclaration]: kind: function | name: import_function | {{.*}} | lang: C
Saleem Abdulrasool8aa0b802015-12-10 18:45:18 +000012// CHECK: <attribute>: attribute(dllimport)
13void __attribute__((dllimport)) import_gnu_attribute(void);
Serge Pavlovb43573b2017-05-24 14:57:17 +000014// CHECK: [indexDeclaration]: kind: function | name: import_gnu_attribute | {{.*}} | lang: C
Saleem Abdulrasool8aa0b802015-12-10 18:45:18 +000015// CHECK: <attribute>: attribute(dllimport)
16