Add test intended for commit in r231317
authorReid Kleckner <reid@kleckner.net>
Wed, 1 Apr 2015 23:32:03 +0000 (23:32 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 1 Apr 2015 23:32:03 +0000 (23:32 +0000)
llvm-svn: 233866

clang/test/Sema/pragma-section-invalid.c [new file with mode: 0644]

diff --git a/clang/test/Sema/pragma-section-invalid.c b/clang/test/Sema/pragma-section-invalid.c
new file mode 100644 (file)
index 0000000..b9075c4
--- /dev/null
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -fms-extensions %s -triple x86_64-apple-darwin
+
+// expected-error@+1 {{argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma}}
+#pragma data_seg(".my_const")
+int a = 1;
+#pragma data_seg("__THINGY,thingy")
+int b = 1;