diff options
Diffstat (limited to 'clang/test/Index/index-attrs.cpp')
-rw-r--r-- | clang/test/Index/index-attrs.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/test/Index/index-attrs.cpp b/clang/test/Index/index-attrs.cpp index 0758a422cab..b6100acf880 100644 --- a/clang/test/Index/index-attrs.cpp +++ b/clang/test/Index/index-attrs.cpp @@ -1,4 +1,4 @@ -// RUN: c-index-test -index-file %s -target armv7-windows-gnu -fdeclspec | FileCheck %s +// RUN: c-index-test -index-file -check-prefix CHECK %s -target armv7-windows-gnu -fdeclspec struct __declspec(dllexport) export_s { void m(); @@ -19,7 +19,7 @@ struct __declspec(dllimport) import_s { class __attribute__((dllexport)) export_gnu_s { void m(); }; -// CHECK: [indexDeclaration]: kind: c++-class | name: export_gnu_s | {{.*}} | lang: C++ +// CHECK: [indexDeclaration]: kind: struct | name: export_gnu_s | {{.*}} | lang: C++ // CHECK: <attribute>: attribute(dllexport) // CHECK: [indexDeclaration]: kind: c++-instance-method | name: m | {{.*}} | lang: C++ // CHECK: <attribute>: attribute(dllexport) @@ -27,24 +27,24 @@ class __attribute__((dllexport)) export_gnu_s { class __attribute__((dllimport)) import_gnu_s { void m(); }; -// CHECK: [indexDeclaration]: kind: c++-class | name: import_gnu_s | {{.*}} | lang: C++ +// CHECK: [indexDeclaration]: kind: struct | name: import_gnu_s | {{.*}} | lang: C++ // CHECK: <attribute>: attribute(dllimport) // CHECK: [indexDeclaration]: kind: c++-instance-method | name: m | {{.*}} | lang: C++ // CHECK: <attribute>: attribute(dllimport) extern "C" void __declspec(dllexport) export_function(void) {} -// CHECK: [indexDeclaration]: kind: function | name: export_function | {{.*}} | lang: C +// CHECK: [indexDeclaraton]: kind: function | name: export_function | {{.*}} | lang: C // CHECK: <attribute>: attribute(dllexport) extern "C" void __attribute__((dllexport)) export_gnu_function(void) {} -// CHECK: [indexDeclaration]: kind: function | name: export_gnu_function | {{.*}} | lang: C +// CHECK: [indexDeclaraton]: kind: function | name: export_gnu_function | {{.*}} | lang: C // CHECK: <attribute>: attribute(dllexport) extern "C" { void __declspec(dllimport) import_function(void); -// CHECK: [indexDeclaration]: kind: function | name: import_function | {{.*}} | lang: C +// CHECK: [indexDeclaration] kind: function | name: import_function | {{.*}} | lang: C // CHECK: <attribute>: attribute(dllimport) void __attribute__((dllimport)) import_gnu_function(void); -// CHECK: [indexDeclaration]: kind: function | name: import_gnu_function | {{.*}} | lang: C +// CHECK: [indexDeclaration] kind: function | name: import_gnu_function | {{.*}} | lang: C // CHECK: <attribute>: attribute(dllimport) } |