aboutsummaryrefslogtreecommitdiff
path: root/clang/test/AST/pragma-multiple-attributes-declspec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/AST/pragma-multiple-attributes-declspec.cpp')
-rw-r--r--clang/test/AST/pragma-multiple-attributes-declspec.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/AST/pragma-multiple-attributes-declspec.cpp b/clang/test/AST/pragma-multiple-attributes-declspec.cpp
new file mode 100644
index 0000000..68d697f
--- /dev/null
+++ b/clang/test/AST/pragma-multiple-attributes-declspec.cpp
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -triple i386-pc-win32 -fms-extensions -fms-compatibility -fsyntax-only -ast-dump %s | FileCheck %s
+
+#pragma clang attribute push (__declspec(dllexport, noinline), apply_to=function)
+void func1();
+#pragma clang attribute pop
+// CHECK: FunctionDecl {{.*}} func1
+// CHECK-NEXT: DLLExportAttr {{.*}}
+// CHECK-NEXT: NoInlineAttr {{.*}}