summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ms-declspecs.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ms-declspecs.c')
-rw-r--r--test/CodeGen/ms-declspecs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/ms-declspecs.c b/test/CodeGen/ms-declspecs.c
index 26bdc58..5dc7787 100644
--- a/test/CodeGen/ms-declspecs.c
+++ b/test/CodeGen/ms-declspecs.c
@@ -1,5 +1,10 @@
// RUN: %clang_cc1 -triple i386-pc-win32 %s -emit-llvm -fms-compatibility -o - | FileCheck %s
+__declspec(selectany) int x1 = 1;
+const __declspec(selectany) int x2 = 2;
+// CHECK: @x1 = weak_odr global i32 1, align 4
+// CHECK: @x2 = weak_odr constant i32 2, align 4
+
struct __declspec(align(16)) S {
char x;
};
OpenPOWER on IntegriCloud