Serge Pavlov | b43573b | 2017-05-24 14:57:17 +0000 | [diff] [blame] | 1 | // RUN: c-index-test -index-file %s -target armv7-windows-gnu -fdeclspec 2>&1 | FileCheck %s |
Saleem Abdulrasool | 8aa0b80 | 2015-12-10 18:45:18 +0000 | [diff] [blame] | 2 | |
| 3 | void __declspec(dllexport) export_function(void) {} |
Serge Pavlov | b43573b | 2017-05-24 14:57:17 +0000 | [diff] [blame] | 4 | // CHECK: [indexDeclaration]: kind: function | name: export_function | {{.*}} | lang: C |
Saleem Abdulrasool | 8aa0b80 | 2015-12-10 18:45:18 +0000 | [diff] [blame] | 5 | // CHECK: <attribute>: attribute(dllexport) |
| 6 | void __attribute__((dllexport)) export_gnu_attribute(void) {} |
Serge Pavlov | b43573b | 2017-05-24 14:57:17 +0000 | [diff] [blame] | 7 | // CHECK: [indexDeclaration]: kind: function | name: export_gnu_attribute | {{.*}} | lang: C |
Saleem Abdulrasool | 8aa0b80 | 2015-12-10 18:45:18 +0000 | [diff] [blame] | 8 | // CHECK: <attribute>: attribute(dllexport) |
| 9 | |
| 10 | void __declspec(dllimport) import_function(void); |
Serge Pavlov | b43573b | 2017-05-24 14:57:17 +0000 | [diff] [blame] | 11 | // CHECK: [indexDeclaration]: kind: function | name: import_function | {{.*}} | lang: C |
Saleem Abdulrasool | 8aa0b80 | 2015-12-10 18:45:18 +0000 | [diff] [blame] | 12 | // CHECK: <attribute>: attribute(dllimport) |
| 13 | void __attribute__((dllimport)) import_gnu_attribute(void); |
Serge Pavlov | b43573b | 2017-05-24 14:57:17 +0000 | [diff] [blame] | 14 | // CHECK: [indexDeclaration]: kind: function | name: import_gnu_attribute | {{.*}} | lang: C |
Saleem Abdulrasool | 8aa0b80 | 2015-12-10 18:45:18 +0000 | [diff] [blame] | 15 | // CHECK: <attribute>: attribute(dllimport) |
| 16 | |