summaryrefslogtreecommitdiff
path: root/clang/test/SemaTemplate/pragma-ms_struct.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaTemplate/pragma-ms_struct.cpp')
-rw-r--r--clang/test/SemaTemplate/pragma-ms_struct.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/pragma-ms_struct.cpp b/clang/test/SemaTemplate/pragma-ms_struct.cpp
new file mode 100644
index 0000000..f04dc5c
--- /dev/null
+++ b/clang/test/SemaTemplate/pragma-ms_struct.cpp
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -triple i686-apple-osx10.7.0 %s
+
+#pragma ms_struct on
+
+// <rdar://problem/10791194>
+template<int x> struct foo {
+ long long a;
+ int b;
+};
+extern int arr[sizeof(foo<0>) == 16 ? 1 : -1];